Skip to main content

Python components compliant with Synaptix framework

Project description

Python tools

Requires Python 3.8+

PyPI : https://pypi.org/project/elz-py-tools/

Usage example : https://gitlab.com/elzeard/elz-py-tools-example

This repository contains some Python components used in Elzeard project. These components contain AMQP client and drivers for connecting databases. They are made to be working along with synaptix framework created by Mnemotix (https://gitlab.com/mnemotix).

This repository uses Poetry for package dependencies (https://python-poetry.org/).

For working on these components or new ones, install poetry and install package dependencies by running :

poetry install

For using it locally from another repository :

poetry build

pip install <local_path_to_this_repo>

Datastore and drivers

TODO: to complete...

Model generator

Model files can be generated for facilitating use of this framework and querying of graph and index TODO: complete doc...

Here is the format of the schema json file, which is used by datastore :

[{
    schema1: {
        name: <string>,
        instantiable: <boolean>,
        graphType: <string>,
        indexType: <string>,
        mongoType: <string>,
        props: {
            <prop1>: { name: <string>, dataType: <string>, plural: <boolean> }
        },
        links: {
            <link1>: {
                name: <string>,
                relatedType: <string>,
                nested: <boolean>,
                plural: <boolean>,
                reversedLink: <string>
            }
        }
    },
    ...
}]

TODO:

  • Implements GraphDriver.get_nodes method
  • Add possibility to query a label property in a specific language
  • Option for passing custom datatype mapping in datastore

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

elz-py-tools-0.1.4.tar.gz (18.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

elz_py_tools-0.1.4-py3-none-any.whl (26.5 kB view details)

Uploaded Python 3

File details

Details for the file elz-py-tools-0.1.4.tar.gz.

File metadata

  • Download URL: elz-py-tools-0.1.4.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.8.0 Linux/5.4.0-80-generic

File hashes

Hashes for elz-py-tools-0.1.4.tar.gz
Algorithm Hash digest
SHA256 f32968be9de8454e51160c4d37996c8caec419bfb91a3bbd3e01287ba050d191
MD5 b7a7b89833f073421edf48268dcd31c5
BLAKE2b-256 0c7983a5a8bde72af69f47cd08ce9d4731b06e907f9df34f987e29e00be71432

See more details on using hashes here.

File details

Details for the file elz_py_tools-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: elz_py_tools-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 26.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.8.0 Linux/5.4.0-80-generic

File hashes

Hashes for elz_py_tools-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ce293146009383321d0b60f3e10d1b070a7f872449a694819ec74b5ea8c2485c
MD5 7a3ad6f014f9bcc60f44054ab83924a6
BLAKE2b-256 e143cbeaa9d82d37d020db170337138470d3b96ed1fb825a534cf0a02a5971ca

See more details on using hashes here.

Supported by

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