Skip to main content

Library to interact with the Exonet API.

Project description

exonetapi

Python 3 library for the Exonet API.

Latest Version on Packagist Python Versions Software License

Install

Install using pip:

pip install exonetapi

Usage

Example to get the user details of the authorised user:

from exonetapi import Client

# Create a new Client.
client = Client('https://api.exonet.nl')

# Authorize with a personal access token.
client.authenticator.set_token('<YOUR_TOKEN>')

# Make an API call. Get details of the authorized user.
user_details = client.resource('me').get()

# Print user's name.
print('Autorized as: {name}'.format(
    name=user_details.attribute('name')
))

See the /docs directory for complete documentation and additional code snippets.

Examples

The /examples directory contains ready to use scripts to help you get started. These examples can be executed with your personal access token. One of them gets a ticket with it's emails and prints the details::

$ python examples/ticket_details.py <YOUR-TOKEN>

This should make two API calls and print the ticket and email details for one of your tickets.

Change log

Please see releases for more information on what has changed recently.

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Issues and feature requests

You've found a bug in the source code, a mistake in the documentation or maybe you'd like a new feature? You can help us by submitting an issue to our GitHub Repository. Before you create an issue, make sure you search the archive, maybe your question was already answered.

Even better: You could submit a pull request with a fix / new feature!

Pull request process

  1. Search our repository for open or closed pull requests that relates to your submission. You don't want to duplicate effort.

  2. You may merge the pull request in once you have the sign-off of two other developers, or if you do not have permission to do that, you may request the second reviewer to merge it for you.

Setting up development environment

This Python project is fully managed using the Poetry dependency manager.

You need at least:

Install all packages, including all development requirements:

poetry install

Poetry creates by default an virtual environment where it installs all necessary pip packages, to enter or exit the venv run the following commands:

poetry shell
exit

Now you're all set to get started!

To run the Python tests:

poetry run pytest

To run the bandit checks:

poetry run bandit

Security

If you discover any security related issues please email development@exonet.nl instead of using the issue tracker.

Credits

License

MIT License

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

exonetapi-5.1.0.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

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

exonetapi-5.1.0-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file exonetapi-5.1.0.tar.gz.

File metadata

  • Download URL: exonetapi-5.1.0.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for exonetapi-5.1.0.tar.gz
Algorithm Hash digest
SHA256 724a7eadb25966a1eea489c687dd2b284d0df4c3bc9ed585095f5e9d048001ff
MD5 0223c76d725d9220b7407a592eab26f9
BLAKE2b-256 35092c94d8a5ccc2f224a4a6fab1fca8e368af48fd454329aeac525106a4bfd9

See more details on using hashes here.

File details

Details for the file exonetapi-5.1.0-py3-none-any.whl.

File metadata

  • Download URL: exonetapi-5.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for exonetapi-5.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7723c2567dbe9549ba206fb4a865959063ff3c25c56e1023570e6bfde0508eb9
MD5 55310213c6084293cba24ecfa0f31207
BLAKE2b-256 2f464ae975b298e8388f48fab0577ec36cd0b9e1255e4f7d27a56a2cd33203c6

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