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.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: apidownload-2.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bf30924f3ca062b7ec429e287f76cbac2ee2477090e0d0f92091371e0a4b3b9f
MD5 0c1b99ac89d2d1b7901d9d98f0e5cfdd
BLAKE2b-256 e5d17f17d17d67dd1a2a15051c60306868ec30d1a5172924282a340f4c63a7a7

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