Skip to main content

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


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.1.0.tar.gz (88.6 kB view details)

Uploaded Source

Built Distribution

psym-2.1.0-py3-none-any.whl (231.6 kB view details)

Uploaded Python 3

File details

Details for the file psym-2.1.0.tar.gz.

File metadata

  • Download URL: psym-2.1.0.tar.gz
  • Upload date:
  • Size: 88.6 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.8.0 tqdm/4.49.0 CPython/3.7.9

File hashes

Hashes for psym-2.1.0.tar.gz
Algorithm Hash digest
SHA256 1436480b1975244b781a82edebfa0b88288320aa9bc4777fde65cd194d96f200
MD5 5753ab090752bb9f61ccc093e5d47d83
BLAKE2b-256 776bea12d3651859c9df37f77cb76aae03091ae4503bd5d192fd01c7b46fc31a

See more details on using hashes here.

Provenance

File details

Details for the file psym-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: psym-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 231.6 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.8.0 tqdm/4.49.0 CPython/3.7.9

File hashes

Hashes for psym-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 07be130d8d9dbc4aa6abe9ae848cee5fc8238da3c780f0ee2633866a7808fc37
MD5 f303dc279d7c50ae2349b2d8586ccddd
BLAKE2b-256 6affdd71aafedcca7a734b1e9b5f4b61c2d9fd9b9de6d0eacf042d68b221276a

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page