Psym is a python package that allows for querying and modifying the Symphony data using graphql queries. Graphql is a query language developed by Facebook (https://graphql.org/)
Prerequisites
- Python >= 3.7
Installation
- Install it with:
pip install psym
Usage
- First connect to symphony with your credentials
from psym import PsymClient
# since symphony is multi tenant system you will need to insert which partner you connect as
client = PsymClient(email, password, tenant_name)
- The tenant is the company name
- Start creating location types, equipment types:
locationType = client.add_location_type("City", [])
equipment_type = client.add_equipment_type("Antenna HW", "Category Name", [("altitude", "int", None, True)], {}, [])
- Start creating locations, equipment and links:
location = client.add_location(-1.22,2.66, ('City', 'New York'))
equipment = client.add_equipment('HW1569', 'Antenna HW', location, {'altitude': 53.5})
License
psym is BSD License licensed, as found in the LICENSE file.
Release files for psym-gjiroto 2.5.26
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| psym_gjiroto-2.5.26.tar.gz | 134.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| psym_gjiroto-2.5.26-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 582.6 kB
Release files / psym_gjiroto-2.5.26.tar.gz
| Download URL | psym_gjiroto-2.5.26.tar.gz |
|---|---|
| Size | 134.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9d2e780a35ae53c3c1ae143921f14d75c86622128f69836b916c52ca7f98960b
|
|
BLAKE2b-256 checksum How to use checksums |
5fc561905af17b3c6d8b37dd34fe7d4fb822094d7aec26a50f4e01cd36ca5cfe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / psym_gjiroto-2.5.26-py3-none-any.whl
| Download URL | psym_gjiroto-2.5.26-py3-none-any.whl |
|---|---|
| Size | 447.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fbb885e7284ba682f2bc97bc2fe4e6ed7e321d301ab7bb40bdcc3d2692cc5b15
|
|
BLAKE2b-256 checksum How to use checksums |
fdf2ac689e76bf448b9072af7b85ee3e986e6fd4f7cb9b7f814da5256ea74e7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|