Skip to main content

API Market SDK for Python Development

Project description

PyPI-Server Twitter Project generated with PyScaffold

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


Download files

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

Source Distribution

apimarket-2.0.0.tar.gz (24.6 kB view details)

Uploaded Source

Built Distribution

apimarket-2.0.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file apimarket-2.0.0.tar.gz.

File metadata

  • Download URL: apimarket-2.0.0.tar.gz
  • Upload date:
  • Size: 24.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for apimarket-2.0.0.tar.gz
Algorithm Hash digest
SHA256 d098f68c20a1906c13a3176bda9a2f4dc30862b2ca64ac676ba284542b54822d
MD5 84b18bde6a2f625125f7fd346bdc1631
BLAKE2b-256 4d18b7618b43f080a53cf8b8eac9f359447983cceea75fff3250bd2bf0e447f2

See more details on using hashes here.

File details

Details for the file apimarket-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: apimarket-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for apimarket-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8f4abef5c63c7d1ee9dee0597870d055f1f75441d8adfc91afc96205a5c81968
MD5 b6b499a7be4a138924e51490fceddee3
BLAKE2b-256 0fcf29ead3b9c9d70aea8fefb0aebf8814c15e7f17433f7ef24e555d3d839e95

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