Tool for accessing and modifying Symphony database
Project description
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.6
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
psym-2.2.0.tar.gz
(89.9 kB
view details)
Built Distribution
psym-2.2.0-py3-none-any.whl
(234.5 kB
view details)
File details
Details for the file psym-2.2.0.tar.gz
.
File metadata
- Download URL: psym-2.2.0.tar.gz
- Upload date:
- Size: 89.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97a7553a2b0b4d0c8ab5d6007d03d3001224aa0d8a21e6d1ad377406960a1cf0 |
|
MD5 | 56869cbe2498c41437654b545efe459c |
|
BLAKE2b-256 | 9706dbae5814539021296a53d095a8d3210e2113900163bc07686d412159d738 |
Provenance
File details
Details for the file psym-2.2.0-py3-none-any.whl
.
File metadata
- Download URL: psym-2.2.0-py3-none-any.whl
- Upload date:
- Size: 234.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 219ec5b87916867d1a5e700fe92e88854068e3459d38dea6be64d7d1a369d41e |
|
MD5 | 54d42836dcec472ced29842321fe3e14 |
|
BLAKE2b-256 | eec32605cdac4c88ea601bfc16257e526e49f23767f6c1ec947e05e8abbf1a2b |