https://github.com/globocom/globomap-loader-api-client
Python client for GloboMap Loader API https://github.com/globocom/globomap-core-loader/blob/master/doc/api.md
https://github.com/globocom/globomap-loader-api-client
globo globomap python36
Last synced: 10 months ago
JSON representation
Python client for GloboMap Loader API https://github.com/globocom/globomap-core-loader/blob/master/doc/api.md
- Host: GitHub
- URL: https://github.com/globocom/globomap-loader-api-client
- Owner: globocom
- License: apache-2.0
- Created: 2018-03-10T00:29:35.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-11-01T18:08:18.000Z (over 6 years ago)
- Last Synced: 2025-07-10T17:54:09.732Z (12 months ago)
- Topics: globo, globomap, python36
- Language: Python
- Homepage:
- Size: 33.2 KB
- Stars: 1
- Watchers: 11
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GloboMap Loader API Client
Python client for API [Globo Map Core Loader] (https://github.com/globocom/globomap-core-loader)
## Starting Project:
` make setup `
## Running Tests:
` make setup ` (When project not started yet.)
` make tests `
## Example of use:
```python
auth_inst = auth.Auth(
api_url='http://localhost:5000',
username='username_api',
password='password_api'
)
self.update = Update(auth=auth_inst, driver_name='driver_x')
data = {
"action": "",
"collection": "",
"key": "",
"element": {
"from": "",
"id": "",
"name": "",
"properties": {
"key_name_1": "value_1",
"key_name_2": "value_2"
},
"properties_metadata": {
"key_name_1": {
"description": "description_1"
},
"key_name_2": {
"description": "description_2"
}
},
"provider": "",
"timestamp": "",
"to": ""
},
"type": "edges"
}
res = self.update.post(data)
```
## Licensing
Globo Map API is under [Apache 2 License](./LICENSE)