Giter Site home page Giter Site logo

uspto_check's Introduction

USPTO Checker

Checks the USPTO for the existence of their daily XML file at https://bulkdata.uspto.gov/data/trademark/dailyxml/applications/

Setup

Install Poetry for dependency management and virtual environment.

Installation

  1. Clone this repository to your local machine.
  2. Navigate to the project directory.
  3. Run the following command to install the project dependencies:
poetry install
  1. Initiate the virtual environment
poetry shell

Usage

Run the script using the following command:

python check.py

This will check for the latest expected file. If you want a different date, pass the keyname as a parameter:

python check.py --keyname 231210

The script will check USPTO every 60 seconds and print the result.

image

When the file is found, it will check for the file size, since it's common for the USPTO to make empty files available.

If the file is less than 1MB in size, you'll see this:

image

If the file size is OK, you'll be greeted with a sound alert.

image

You can suppress the sound by passing the --quiet parameter.

Pre-commit and Ruff Integration

This project also utilizes pre-commit and Ruff for code quality and formatting checks. The pre-commit configuration file can be found in the project repository.

To set up pre-commit and integrate Ruff into your local development environment, follow these steps:

  1. Navigate to the project directory.
  2. Run the following command to install the pre-commit hooks:
pre-commit install

With pre-commit set up, Ruff will automatically check the formatting of Python files when you commit changes.

License

This project is licensed under the MIT License.

For more information, please refer to the documentation and the source code in the repository.

uspto_check's People

Contributors

rodbv avatar rodrigovieira-vinta avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.