SDK Python - APIGratis by APIBrasil
Conjunto de API, para desenvolvedores.
Transforme seus projetos em solucoes inteligentes com nossa API. Com recursos como API do WhatsApp, geolocalizacao, rastreamento de encomendas, verificacao de CPF/CNPJ e mais, voce pode criar solucoes eficientes e funcionais.
Como instalar
pip install apigratis-sdk-python
Canais de suporte (Comunidade)
Obtenha suas credenciais
Mais informacoes
https://pypi.org/project/apigratis-sdk-python
Servicos de API disponiveis
| Up | Services available | Description | Free | Beta | Stable |
|---|---|---|---|---|---|
| Yes | WhatsAppService | API do WhatsApp | Yes | Yes | Yes |
| Yes | SMS | API de SMS . | Yes | Yes | Yes |
| Yes | Receita Data CNPJ | API Dados CNPJ Receita. | Yes | Yes | Yes |
| Yes | Receita Data CPF | API Dados de CPF Serasa. | Yes | Yes | Yes |
| Yes | CorreiosService | API Busca encomendas Correios Brazil. | Yes | Yes | Yes |
| Yes | CEPLocation | API CEP Geolocation + IBGE Brazil. | Yes | Yes | Yes |
| Yes | VehiclesService | API Placa Dados. | Yes | Yes | Yes |
| Yes | FipeService | API Placa FIPE. | Yes | Yes | Yes |
Como utilizar
Voce pode utilizar todos os endpoints da API do WhatsApp, basta mudar o action e o body
Documentacoes
https://apibrasil.com.br/documentacoes
WhatsApp Service
from apigratis.Service import Service
import json
def whatsapp():
#sendText
sendText = Service().whatsapp(json.dumps({
"action": "sendText",
"credentials": {
"DeviceToken": "SEU_DEVICE_TOKEN",
"BearerToken": "SEU_BEARER_TOKEN",
},
"body": {
"text": "Hello World for Python",
"number": "5531994359434",
"time_typing": 1
}
}))
#sendFile
sendFile = Service().whatsapp(json.dumps({
"action": "sendFile",
"credentials": {
"DeviceToken": "SEU_DEVICE_TOKEN",
"BearerToken": "SEU_BEARER_TOKEN",
},
"body": {
"number" : "5531994359434",
"path" : "https://assets.nagios.com/downloads/nagiosxi/docs/Installing_The_XI_Linux_Agent.pdf",
"options" : {
"caption": "texto do caption para arquivo",
"createChat": True,
"filename": "arquivo X"
}
}
}))
print(sendFile)
if __name__ == "__main__":
whatsapp()
Vehicles Data Service
from apigratis.Service import Service
import json
def vehicles():
dados = Service().vehicles(json.dumps({
"action": "dados",
"credentials": {
"DeviceToken": "SEU_DEVICE_TOKEN",
"BearerToken": "SEU_BEARER_TOKEN",
},
"body": {
"placa": "OQH3A65"
}
}))
print(dados)
if __name__ == "__main__":
vehicles()
Vehicles FIPE Service
from apigratis.Service import Service
import json
def fipe():
vehicle = Service().vehicles(json.dumps({
"action": "fipe",
"credentials": {
"DeviceToken": "SEU_DEVICE_TOKEN",
"BearerToken": "SEU_BEARER_TOKEN",
},
"body": {
"placa": "OQH3065",
}
}))
print(vehicle)
if __name__ == "__main__":
fipe()
Dados CNPJ Service
from apigratis.Service import Service
import json
def cnpj():
dados = Service().cnpj(json.dumps({
"action": "cnpj",
"credentials": {
"DeviceToken": "SEU_DEVICE_TOKEN",
"BearerToken": "SEU_BEARER_TOKEN",
},
"body": {
"cnpj": "44.959.669/0001-80",
}
}))
print(dados)
if __name__ == "__main__":
cnpj()
Metadata
Release files for apigratis-sdk-python 1.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| apigratis-sdk-python-1.1.7.tar.gz | 4.8 kB | Without provenance | Details for apigratis-sdk-python-1.1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| apigratis_sdk_python-1.1.7-py3-none-any.whl | Python 3 | none | any | Details for apigratis_sdk_python-1.1.7-py3-none-any.whl |
Total release size: 10.4 kB
Release files / apigratis-sdk-python-1.1.7.tar.gz
| Download URL | apigratis-sdk-python-1.1.7.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
edb288631b3e3b887197f656bb789e115c5bd4eaaa5a75715bb36e811381f32b
|
|
BLAKE2b-256 checksum How to use checksums |
32765dd11b26d2a0ccd2f70e9d9852b6953bf92529c07f277850f736889df393
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.10
|
Release files / apigratis_sdk_python-1.1.7-py3-none-any.whl
| Download URL | apigratis_sdk_python-1.1.7-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3f6e18f638dec2bbe5fb6153987f0d9143792f7c95bbf6ef37ff7c741f65069e
|
|
BLAKE2b-256 checksum How to use checksums |
14133da1e824c2c0cc8b201521d3ea06ff7b580ad415c9692fc0b15c045aca71
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.10
|
Security for apigratis-sdk-python 1.1.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.