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-TEST 2.5.31
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_TEST-2.5.31.tar.gz | 142.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| psym_TEST-2.5.31-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 632.5 kB
Release files / psym_TEST-2.5.31.tar.gz
| Download URL | psym_TEST-2.5.31.tar.gz |
|---|---|
| Size | 142.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
081c5a20b0430445806ceb76b54dfd93e0f8eba27ff2e6aca46eab4cb6aa0741
|
|
BLAKE2b-256 checksum How to use checksums |
fc50f6adb74debc03e8de82d7b79df9c999c60b7b3f56cd064db77afdff9b401
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
|
Release files / psym_TEST-2.5.31-py3-none-any.whl
| Download URL | psym_TEST-2.5.31-py3-none-any.whl |
|---|---|
| Size | 490.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c0ebe7c822652be1a76eae22dd971a2d108dd159ff72a8403ae63b3f89414be4
|
|
BLAKE2b-256 checksum How to use checksums |
8f5c98d2b40c1854b014832bddd7942e9e2a7e4a47dc4416889c6b3ff9647281
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
|