Skip to main content

NFL Kicking Data

Project description

nfldata

Data Structures and Persistence Tools for NFL Data

Pre-Requisites

To use this package, you will need to install the openapi-generator at: Open API Generator. Once you have that installed, you can now generate the schema in dozens of languages (see site for what is supported).

How-To, a Walkthrough for Python generated objects

Begin by generating Python packages using openapi-generator from this directory.

This uses a generator set up for eventual passing of objects via JSON over Python's Flask

> openapi-generator generate -g python-flask -i api/openapi.yaml -o gen/ --package-name nfldata

This is a more general purpose Python generator in case flask was not your goal:

> openapi-generator generate -g python -i api/openapi.yaml -o gen/ --package-name nfldata

This will generate the entire set of schemas in Python and put them in the gen/ folder. The objects will use a top-level package name of "nfldata".

Now go into the gen/ directory, and explore. Depending upon which generator you used, you might see a docs/ folder.

To generate a Python .whl file, simply put this line at the end of gen/setup.py:

setup(name=NAME, version=VERSION, packages=find_packages())

and then type python3 setup.py bdist_wheel which will create a .whl file in dist/

If you want to just directly install the package type: python setup.py install which will install it to your Python environment.

Note that either of these may require elevated access to do.

How-To, for other languages

The same command shown above will generate code in other language types if you swap out python for another language. Follow this link to see more generator types

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nfldata-0.1.0.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nfldata-0.1.0-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

Details for the file nfldata-0.1.0.tar.gz.

File metadata

  • Download URL: nfldata-0.1.0.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for nfldata-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6efaeefb813cda1b239a0be3e627781e76f518eacc17208c87a58794e5f95c18
MD5 fd6dfc5e221936f7b0aafdb9cce9a87d
BLAKE2b-256 a57bedd8aa89951c947b05d745de266a7a804cb7f40b1d9db8eb1b1e50bb18c2

See more details on using hashes here.

File details

Details for the file nfldata-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: nfldata-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 25.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for nfldata-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 51d75dc711e5d30da8640f365218d6294a90e9151a6c9a1b34c1b25f39a61740
MD5 75b0dd93e05d7c5b3f2c5348434fc96b
BLAKE2b-256 55cfbc53f1cca6eaed61fab1cd2130f82893b37d14d2958f27cd1cdd2aa8e2e3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page