Skip to main content

Download the data from an API endpoint to a file

Project description

API Download

Download the data from an API endpoint to a file

Install

pip install apidownload

Run

apidownload

or

python -m apidownload
  • The first time apidownload is run in a directory, an apidownload.json file is created.
    • This contains the endpoint URLs and the file paths to store the data in.
    • Optionally, the indent property may be provided to override the default indentation level of 2 spaces.
  • If the apidownload.json file exists in this directory, the endpoints are downloaded to the specified files.

The path to the file/folder can optionally be given as a positional parameter:

  • Custom folder:
    apidownload myfolder
    
  • Custom file:
    apidownload myfolder/myfile.txt
    
  • Both absolute and relative paths are allowed.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

apidownload-2.1.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file apidownload-2.1.1-py3-none-any.whl.

File metadata

  • Download URL: apidownload-2.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for apidownload-2.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 67aa5cce2fd9f56817ce8181308a1dd6685e1486e015dad2e9ea168829b1cd8f
MD5 9017da5c84a1ca0b7e86a8d6ee5bf668
BLAKE2b-256 6f0d87aa2bedcf76a86d2a209417f162d3ac5283c912d554abd273f5531fda1f

See more details on using hashes here.

Supported by

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