Tools for interacting with the URA eFRIS API
Project description
Certainly! Here's a suggested structure for your oliseh_efris_tools library along with a README file explaining its usage:
oliseh_efris_tools Library Structure
oliseh_efris_tools/
│
├── client.py
├── data.py
├── globaldata.py
├── headers.py
├── returnstateinfo.py
├── __init__.py
└── README.md
README.md
# oliseh_efris_tools
`oliseh_efris_tools` is a Python library that provides tools for interacting with the OLISEH eFRIS (Electronic Fiscal Receipting and Invoicing System) API. It offers functionalities for managing global data, request data, headers, and return state information.
## Installation
You can install `oliseh_efris_tools` via pip:
```bash
pip install oliseh-efris-tools
Usage
Client
The Client class serves as the main interface for interacting with the OLISEH eFRIS API. It provides methods for setting global data, request data, headers, and handling return state information.
Example usage:
from oliseh_efris_tools import Client
# Initialize Client with the URL of the OLISEH eFRIS API
client = Client("https://efris.ura.go.ug/")
# Set global data
client.set_global_key("appId", "AP01")
client.set_global_key("version", "1.1.20191201")
# Add more global data as needed...
# Set request data
client.Data.set_content("encrypted content")
client.Data.set_signature("JKQWJK34K32JJEK2JQWJ5678")
client.Data.set_data_description("0", "1", "0")
# Add more request data as needed...
# Set headers
client.Headers.set_header("User-Agent", "MyApp/1.0")
# Add more headers as needed...
# Send request
client.send_request()
Additional Components
- GlobalData: Manages global information.
- Data: Manages request data.
- Headers: Manages HTTP headers.
- ReturnStateInfo: Manages return state information.
Contributing
Contributions are welcome! If you have suggestions or find any issues, feel free to open an issue or submit a pull request on GitHub.
License
This project is licensed under the MIT License. See the LICENSE file for details.
By time of writing this
the URA endpoint is `"https://efris.ura.go.ug/"`
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file oliseh-efris-tools-0.1.0.tar.gz.
File metadata
- Download URL: oliseh-efris-tools-0.1.0.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04c8beba523efcc8f09e757242c5541de560576a53b8b9c71b276df9f573a2ce
|
|
| MD5 |
277617b3ef65415c207a107d7ce81778
|
|
| BLAKE2b-256 |
357a5b5a61fc10029b9135afddf50a1fc31fd0f1bbc4ca04c610c0f1ce227461
|
File details
Details for the file oliseh_efris_tools-0.1.0-py3-none-any.whl.
File metadata
- Download URL: oliseh_efris_tools-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
686900d206774acaf6ba45f69a8764f616e9d8a2f9ca389463fa254cff4aeb69
|
|
| MD5 |
bdb4206d5b993ab84156bb49bc11af07
|
|
| BLAKE2b-256 |
775b70f135f417d4ef8ab8649cc7cb3b729458000c0b0ad551f0a6e95e06abf7
|