API Market SDK for Python Development
Project description
apimarket
API Market Python Open Source Development
Installation
pip install apimarket
Set API KEY
There are three different ways to set the API key: you can set the API key as an environment variable in your shell, in the .env file, or call functions with your API key.
export APIMARKET_API_KEY="REPLACE-WITH-YOUR-API-HERE"
APIMARKET_API_KEY="REPLACE-WITH-YOUR-API-HERE"
Python
You can consult the full list on Python Docs.
Fetch CURP details
import apimarket
# Also it is possible apimarket.fetch_curp_details("LOOA531113HTCPBN07", api_key="")
result = apimarket.fetch_curp_details("LOOA531113HTCPBN07")
print(result)
CLI
You can consult the full list on CLI Docs.
Fetch CURP details
apimarket -c LOOA531113HTCPBN07
Combine different requests
apimarket -c LOOA531113HTCPBN07 --get-rfc-from-curp LOOA531113HTCPBN07 | jq -s 'add'
Read a CSV with your customs fields
csvcut belongs to csvkit library
csvcut apimarket-consulta.csv -c 'CURP' | xargs -P 8 -I {} apimarket -c {} 2>"error.txt" | jq -s > curps.json
Note
This project has been set up using PyScaffold 4.5. For details and usage information on PyScaffold see https://pyscaffold.org/.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
apimarket-1.2.2.tar.gz
(22.3 kB
view details)
Built Distribution
File details
Details for the file apimarket-1.2.2.tar.gz
.
File metadata
- Download URL: apimarket-1.2.2.tar.gz
- Upload date:
- Size: 22.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d130fdd22f67cd4c860d2ac4b89319817fe153782f663126dabfaa487f1d1b59 |
|
MD5 | a33451132a0e3f8a2d12e6778f29b2f7 |
|
BLAKE2b-256 | f2756bd77f46475db32e2aa47f3229b9605f95c322a4a1e3f0df2ba313d1948f |
File details
Details for the file apimarket-1.2.2-py3-none-any.whl
.
File metadata
- Download URL: apimarket-1.2.2-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d5de7c77e661084f4a4b75c0d3faf7b817b0a5fedb16ae240f79656102b6239 |
|
MD5 | a9a5a6b31c2618559471cfd2bfc176c8 |
|
BLAKE2b-256 | 6aae5fde8503519922886605f511e8f8bb3282cd4e79d131e67f4eb046ee9545 |