Skip to main content

The Assistant python library

Project description

Assistant library

This Python 3.x library is used to write programs that can interact with the Assistant.

Assistant : https://gitlab.com/goassistant/assistant

Pypi webpage : https://pypi.org/project/assistant-lib

Changelog

TODO

License

The license choosen for this project it the LGPLv3. It was choosen instead of the GPLv3 because :

The license allows developers and companies to use and integrate a software component released under the LGPL into their own (even proprietary) software without being required by the terms of a strong copyleft license to release the source code of their own components. However, any developer who modifies an LGPL-covered component is required to make their modified version available under the same LGPL license.

See Wikipedia for more informations.

Installation

pip3 install assistant-lib

Usage

Here is a simple test :

$ python3
Python 3.7.4 (default, Jul 11 2019, 10:43:21) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from assistant_lib import assistant
>>> ac = assistant.AssistantClient("test", "1.0")
Output redirected to the file : 'assistant.log'
>>> ac.get_hostname()
'ambre'

Local tests

If you plan to make some upgrades and test them, here is how to process :

  • Edit your changes in the code
  • Run the clean and build command:
make
  • Check the dist/ folder
  • Install the builded package from the dist/ folder:
pip3 install dist/assistant_lib-<version>.tar.gz

Releasing

The version number is automatically get from git thanks to the setuptools_scm library. So you have no version to set in the code.

To create a new release, just create a tag and push it to Gitlab. The CI/CD pipeline will build a release and publish it to Pypi. This is just magic ;). You can check the .gitlab-ci.yml file to understand how it works.

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

assistant_lib-0.7.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

assistant_lib-0.7-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file assistant_lib-0.7.tar.gz.

File metadata

  • Download URL: assistant_lib-0.7.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.1

File hashes

Hashes for assistant_lib-0.7.tar.gz
Algorithm Hash digest
SHA256 a6e7dd3d4d81cdebe3d68ae9ce621ad40deec36146de96fb108a8100d9016ce1
MD5 8a690acbba8693320c936067e156864f
BLAKE2b-256 3684916aea9a249c904d36bd746c79949a5d1c117108807722af7e69128f47d1

See more details on using hashes here.

File details

Details for the file assistant_lib-0.7-py3-none-any.whl.

File metadata

  • Download URL: assistant_lib-0.7-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.1

File hashes

Hashes for assistant_lib-0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 06e11eb5d3b2434ce0132f58e9a16d76ebb46741addd4f8086e160809b5f8452
MD5 46e2dd9e1ffa13c46a3a098e9bfe60fd
BLAKE2b-256 077a5d339e47ca9640c326011d1432428bf16bfe25aa9ed1ce42c3dd3b25f01f

See more details on using hashes here.

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