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.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.

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.2.2.tar.gz (77.5 kB view hashes)

Uploaded Source

Built Distribution

psym-2.2.2-py3-none-any.whl (228.4 kB view hashes)

Uploaded Python 3

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