Cartes.io official Python API wrapper
Project description
Official Cartes.io Python package
usage
Install Cartes.io Python package:
pip install py-cartes-io
First, import the package:
import py_cartes_io as cartes
Create a map
newMap = cartes.Maps().create()
print(newMap['uuid'])
print(newMap['token'])
Get a list of maps
cartes.Maps().get()
Get a specific map
cartes.Maps('048eebe4-8dac-46e2-a947-50b6b8062fec').get()
Get a maps markers
cartes.Maps('048eebe4-8dac-46e2-a947-50b6b8062fec').markers().get()
Create markers
params = {
'lat': row['lat'],
'lng': row['lng'],
'description': description,
'category_name': row['tag'],
'link': row['href']
}
cartes.Maps('048eebe4-8dac-46e2-a947-50b6b8062fec').markers().create(params)
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
py_cartes_io-0.0.3.tar.gz
(2.5 kB
view details)
Built Distribution
File details
Details for the file py_cartes_io-0.0.3.tar.gz
.
File metadata
- Download URL: py_cartes_io-0.0.3.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 322f14591881e88f8b5bb6c9053c0d11df031c0fe805a06164809bb00d843057 |
|
MD5 | 6421eac44c71a882480fd49f1d332c52 |
|
BLAKE2b-256 | 8b30b60640e157f38755fa7fd52765615aa11805388f9c7f491eb91023008061 |
File details
Details for the file py_cartes_io-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: py_cartes_io-0.0.3-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d62a155ad68ec7b92a5b27358b85d37740ccf25f132c98e31c26790f6b79de7 |
|
MD5 | c7943bc083ffdd5e1a8ec261d8be4aef |
|
BLAKE2b-256 | 2f92d1a8a5e6021cd555de4cd3d52639bb92b5a9b3f1693f7b181237aad83e90 |