Skip to main content

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

Metadata

Release files for exonetapi 5.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for exonetapi 5.1.0
File Size Uploaded
exonetapi-5.1.0.tar.gz 11.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for exonetapi 5.1.0
File Interpreter ABI Platform
exonetapi-5.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 26.9 kB

Release files / exonetapi-5.1.0.tar.gz

Download URL exonetapi-5.1.0.tar.gz
Size 11.8 kB
Tags Source
SHA-256 checksum
How to use checksums
724a7eadb25966a1eea489c687dd2b284d0df4c3bc9ed585095f5e9d048001ff
BLAKE2b-256 checksum
How to use checksums
35092c94d8a5ccc2f224a4a6fab1fca8e368af48fd454329aeac525106a4bfd9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / exonetapi-5.1.0-py3-none-any.whl

Download URL exonetapi-5.1.0-py3-none-any.whl
Size 15.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7723c2567dbe9549ba206fb4a865959063ff3c25c56e1023570e6bfde0508eb9
BLAKE2b-256 checksum
How to use checksums
2f464ae975b298e8388f48fab0577ec36cd0b9e1255e4f7d27a56a2cd33203c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

5.1.0 This release

2 release files

5.0.0

2 release files

4.0.0

2 release files

3.0.3

1 release file

3.0.2

1 release file

3.0.1

1 release file

3.0.0

1 release file

2.1.0

1 release file

2.0.0

1 release file

1.0.0

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page