⚠️ WORK IN PROGRESS ⚠️
This Python API client provides access to masmovil core API domains.
Resources
-
Feasibility
- Coverage - find an address
- Streets:
- search: returns a list of street by text
- get_building_info_by_street: returns a list of building info by street id
- Buildings:
- search: returns a list of buildings by text
- multi_search: returns a list of buildings by request body
- get: returns a building by id with a list of units
- Units:
- get: returns a unit by id with a list of coverages
- get_coverage: returns coverage info for a unit id and territory_owner
- Streets:
- Portability - Checks if a landline portability or an access transfer is allowed
- PortabilityCheck:
- check: Returns whether the portability process can be carried out and whether it requires a new installation
- PortabilityCheck:
- Coverage - find an address
-
Customers
- Signups - access to signups new clients
- post new client
- Users
- returns customer tree data associated to a given document identification, email or number of the client.
- returns user data by userId
- Signups - access to signups new clients
-
Catalogue
- bundled_products - access to bundled products
- Sellable:
- get: Returns sellable bundled products
- Sellable:
- bundled_products - access to bundled products
-
Provision inventory network
- fixed - Obtain fixed numbering for sale
- get number
- fixed - Obtain fixed numbering for sale
Installation
$ pip install masstack-python-client
Configuration Environment
You need define the Masstack CLIENT_EMAIL, PRIVATE_KEY_ID TOKEN_URI, MASSTACK_DOMAIN and PRIVATE_KEY in BASE64 as environment variables to request access toekn. You need define:
MASSTACK_CLIENT_EMAIL=<YOUR CLIENT EMAIL>
MASSTACK_PRIVATE_KEY_ID=<YOUR PRIVATE KEY ID>
MASSTACK_TOKEN_URI=<MASSTACK TOKEN URI>
MASSTACK_PRIVATE_KEY_BASE64=<YOUR PRIVATE KEY in BASE64>
MASSTACK_DOMAIN=<MASSTACK DOMAIN>
If this envvars are not defined, a exception will be raised with the name of the envvar not defined.
Optional TOKEN_STORE_PATH environment variable to store token, if is not defined by defect is /tmp/masstack.token
MASSTACK_TOKEN_STORE_PATH=<YOUR PATH>
To all resources need define ORG_ID
MASSTACK_ORG_ID=<MASSTACK ORG ID>
For coverage resources need define COVERAGE_SEGMENT and COVERAGE_CHANNEL
MASSTACK_COVERAGE_SEGMENT=<SF SEGMENT>
MASSTACK_COVERAGE_CHANNEL=<SF CHANNEL>
Development
Setup environment
- Install
pyenv
curl https://pyenv.run | bash
- Build the Python version
pyenv install 3.11.9
pyenv install 3.8.6
- Create a virtualenv
pyenv virtualenv 3.11.9 masstack-python-client
- Activate virtualenv
pyenv activate masstack-python-client
- Install dependencies
pyenv exec pip install -r requirements-dev.txt
- Install pre-commit hooks
pyenv exec pre-commit install
- To execute tests in local
pyenv local 3.11.9 3.8.6
- Execute tests with Tox
pyenv exec tox
Metadata
Release files for masstack-python-client 0.2.2
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 |
|---|---|---|---|---|
| masstack_python_client-0.2.2.tar.gz | 32.9 kB | Without provenance | Details for masstack_python_client-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| masstack_python_client-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for masstack_python_client-0.2.2-py3-none-any.whl |
Total release size: 72.5 kB
Release files / masstack_python_client-0.2.2.tar.gz
| Download URL | masstack_python_client-0.2.2.tar.gz |
|---|---|
| Size | 32.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a5bc369042c008e9f7740368a7b972dc0b3866d95da9edece20da4e02ae44cc4
|
|
BLAKE2b-256 checksum How to use checksums |
82290766ba8ba1dcd14a276526a7c3e9359b345633ca0a561dd859629ca866e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Release files / masstack_python_client-0.2.2-py3-none-any.whl
| Download URL | masstack_python_client-0.2.2-py3-none-any.whl |
|---|---|
| Size | 39.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e5df71822beee5265c4390892034487a914282849fffede19528cdae4b37eba7
|
|
BLAKE2b-256 checksum How to use checksums |
7df24c0e10bd639281dd047deff200df148369593a688a64c8ac723db93d5b79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Security for masstack-python-client 0.2.2
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.