Name | apigratis-sdk-python JSON |
Version |
1.1.7
JSON |
| download |
home_page | https://github.com/APIBrasil/apigratis-sdk-python |
Summary | A ideia desse SDK é otimizar o tempo de código dos usuários auxiliando na integração com a plataforma. |
upload_time | 2024-08-13 00:49:18 |
maintainer | None |
docs_url | None |
author | APIBRASIL |
requires_python | >=3.2 |
license | MIT License Copyright (c) 2023 apigratis Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
python
package
build
tutorial
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# 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)
[](https://chat.whatsapp.com/KsPendingrUGIPWvUBYAjI1ogaGs)
[](https://t.me/apigratisoficial)
## Obtenha suas credenciais
https://apibrasil.com.br
## 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
```python
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
```python
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
```python
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
```python
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()
```
Raw data
{
"_id": null,
"home_page": "https://github.com/APIBrasil/apigratis-sdk-python",
"name": "apigratis-sdk-python",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.2",
"maintainer_email": null,
"keywords": "python, package, build, tutorial",
"author": "APIBRASIL",
"author_email": "APIBRASIL <contato@apibrasil.com.br>",
"download_url": "https://files.pythonhosted.org/packages/32/76/5dd11b26d2a0ccd2f70e9d9852b6953bf92529c07f277850f736889df393/apigratis-sdk-python-1.1.7.tar.gz",
"platform": null,
"description": "# SDK Python - APIGratis by APIBrasil\r\n\r\nConjunto de API, para desenvolvedores.\r\n\r\n_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._\r\n\r\n## Como instalar\r\n\r\n```pip install apigratis-sdk-python```\r\n## Canais de suporte (Comunidade)\r\n[](https://chat.whatsapp.com/KsPendingrUGIPWvUBYAjI1ogaGs)\r\n[](https://t.me/apigratisoficial)\r\n\r\n## Obtenha suas credenciais\r\nhttps://apibrasil.com.br\r\n\r\n## Mais informacoes\r\n\r\nhttps://pypi.org/project/apigratis-sdk-python\r\n\r\n## Servicos de API disponiveis\r\n\r\n| Up | Services available | Description | Free | Beta | Stable |\r\n------|-------------------------------|-------------------|---------| ------------------------- | ------------------------- |\r\n| Yes | WhatsAppService | API do WhatsApp | Yes | Yes | Yes |\r\n| Yes | SMS | API de SMS . | Yes | Yes | Yes |\r\n| Yes | Receita Data CNPJ | API Dados CNPJ Receita. | Yes | Yes | Yes |\r\n| Yes | Receita Data CPF | API Dados de CPF Serasa. | Yes | Yes | Yes |\r\n| Yes | CorreiosService | API Busca encomendas Correios Brazil. | Yes | Yes | Yes |\r\n| Yes | CEPLocation | API CEP Geolocation + IBGE Brazil. | Yes | Yes | Yes |\r\n| Yes | VehiclesService | API Placa Dados. | Yes | Yes | Yes |\r\n| Yes | FipeService | API Placa FIPE. | Yes | Yes | Yes |\r\n\r\n## Como utilizar\r\n\r\n_Voce pode utilizar todos os endpoints da API do WhatsApp, basta mudar o action e o body_\r\n\r\n## Documentacoes\r\nhttps://apibrasil.com.br/documentacoes\r\n\r\n## WhatsApp Service\r\n\r\n```python\r\nfrom apigratis.Service import Service\r\nimport json\r\n\r\ndef whatsapp():\r\n\r\n #sendText\r\n sendText = Service().whatsapp(json.dumps({\r\n \"action\": \"sendText\",\r\n \"credentials\": {\r\n \"DeviceToken\": \"SEU_DEVICE_TOKEN\",\r\n \"BearerToken\": \"SEU_BEARER_TOKEN\",\r\n },\r\n \"body\": {\r\n \"text\": \"Hello World for Python\",\r\n \"number\": \"5531994359434\",\r\n \"time_typing\": 1\r\n }\r\n }))\r\n\r\n #sendFile\r\n sendFile = Service().whatsapp(json.dumps({\r\n \"action\": \"sendFile\",\r\n \"credentials\": {\r\n \"DeviceToken\": \"SEU_DEVICE_TOKEN\",\r\n \"BearerToken\": \"SEU_BEARER_TOKEN\",\r\n },\r\n \"body\": {\r\n \"number\" : \"5531994359434\",\r\n \"path\" : \"https://assets.nagios.com/downloads/nagiosxi/docs/Installing_The_XI_Linux_Agent.pdf\",\r\n \"options\" : {\r\n \"caption\": \"texto do caption para arquivo\",\r\n \"createChat\": True,\r\n \"filename\": \"arquivo X\"\r\n }\r\n }\r\n }))\r\n\r\n print(sendFile)\r\n\r\nif __name__ == \"__main__\":\r\n whatsapp()\r\n```\r\n\r\n## Vehicles Data Service\r\n\r\n```python\r\nfrom apigratis.Service import Service\r\nimport json\r\n\r\ndef vehicles():\r\n\r\n dados = Service().vehicles(json.dumps({\r\n \"action\": \"dados\",\r\n \"credentials\": {\r\n \"DeviceToken\": \"SEU_DEVICE_TOKEN\",\r\n \"BearerToken\": \"SEU_BEARER_TOKEN\",\r\n },\r\n \"body\": {\r\n \"placa\": \"OQH3A65\"\r\n }\r\n }))\r\n\r\n print(dados)\r\n\r\nif __name__ == \"__main__\":\r\n vehicles()\r\n```\r\n\r\n## Vehicles FIPE Service\r\n\r\n```python\r\nfrom apigratis.Service import Service\r\nimport json\r\n\r\ndef fipe():\r\n\r\n vehicle = Service().vehicles(json.dumps({\r\n \"action\": \"fipe\",\r\n \"credentials\": {\r\n \"DeviceToken\": \"SEU_DEVICE_TOKEN\",\r\n \"BearerToken\": \"SEU_BEARER_TOKEN\",\r\n },\r\n \"body\": {\r\n \"placa\": \"OQH3065\",\r\n }\r\n }))\r\n\r\n print(vehicle)\r\n\r\nif __name__ == \"__main__\":\r\n fipe()\r\n```\r\n\r\n## Dados CNPJ Service\r\n\r\n```python\r\nfrom apigratis.Service import Service\r\nimport json\r\n\r\ndef cnpj():\r\n\r\n dados = Service().cnpj(json.dumps({\r\n \"action\": \"cnpj\",\r\n \"credentials\": {\r\n \"DeviceToken\": \"SEU_DEVICE_TOKEN\",\r\n \"BearerToken\": \"SEU_BEARER_TOKEN\",\r\n },\r\n \"body\": {\r\n \"cnpj\": \"44.959.669/0001-80\",\r\n }\r\n }))\r\n\r\n print(dados)\r\n\r\nif __name__ == \"__main__\":\r\n cnpj()\r\n```\r\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2023 apigratis Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
"summary": "A ideia desse SDK \u00e9 otimizar o tempo de c\u00f3digo dos usu\u00e1rios auxiliando na integra\u00e7\u00e3o com a plataforma.",
"version": "1.1.7",
"project_urls": {
"Bug Tracker": "https://github.com/APIBrasil/apigratis-sdk-python/issues",
"Homepage": "https://github.com/APIBrasil/apigratis-sdk-python",
"Repository": "https://github.com/APIBrasil/apigratis-sdk-python.git"
},
"split_keywords": [
"python",
" package",
" build",
" tutorial"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "14133da1e824c2c0cc8b201521d3ea06ff7b580ad415c9692fc0b15c045aca71",
"md5": "0f3793aa3e2398999454809ec53b4ee0",
"sha256": "3f6e18f638dec2bbe5fb6153987f0d9143792f7c95bbf6ef37ff7c741f65069e"
},
"downloads": -1,
"filename": "apigratis_sdk_python-1.1.7-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0f3793aa3e2398999454809ec53b4ee0",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.2",
"size": 5581,
"upload_time": "2024-08-13T00:49:16",
"upload_time_iso_8601": "2024-08-13T00:49:16.174511Z",
"url": "https://files.pythonhosted.org/packages/14/13/3da1e824c2c0cc8b201521d3ea06ff7b580ad415c9692fc0b15c045aca71/apigratis_sdk_python-1.1.7-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "32765dd11b26d2a0ccd2f70e9d9852b6953bf92529c07f277850f736889df393",
"md5": "5ba6ce3b617a0354344882163f3c52fc",
"sha256": "edb288631b3e3b887197f656bb789e115c5bd4eaaa5a75715bb36e811381f32b"
},
"downloads": -1,
"filename": "apigratis-sdk-python-1.1.7.tar.gz",
"has_sig": false,
"md5_digest": "5ba6ce3b617a0354344882163f3c52fc",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.2",
"size": 4825,
"upload_time": "2024-08-13T00:49:18",
"upload_time_iso_8601": "2024-08-13T00:49:18.341577Z",
"url": "https://files.pythonhosted.org/packages/32/76/5dd11b26d2a0ccd2f70e9d9852b6953bf92529c07f277850f736889df393/apigratis-sdk-python-1.1.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-13 00:49:18",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "APIBrasil",
"github_project": "apigratis-sdk-python",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "apigratis-sdk-python"
}