A python library built to integrate the njal.la API
Project description
Njal.la Python
Description
This Python library provides a convenient interface for interacting with the Njal.la API, allowing users to seamlessly integrate Njal.la services into their Python applications.
Installation
To install the library, use the following command:
pip install Njalla
Usage
import Njalla
# Initialize the Njal.la client
client = Njalla.Client(api_key="your_api_key")
API Key
To use the library, you need to obtain an API key from Njal.la. You can sign up for an account on Njal.la website and generate an API key in your account settings.
Pronunciation
The library is named after "/ˈɲalla/" (Sami), which refers to a small hut in the Sápmi forest, built to protect against predators. This concept aligns with Njal.la's commitment to providing a secure and protective environment for online activities.
License
This library is licensed under the CC BY-NC-SA 4.0 License - see the LICENSE file for details.
Contributing
We welcome contributions! If you find any issues or have suggestions for improvement, please open an issue or submit a pull request.
Classes
Njalla provides five different API classes.
You can use these simply by adding the class name on top of your Instance.
Those are:
- API
- Domain
- Server
- VPN
- Wallet
import Njalla
# Initialize the Njal.la client
client = Njalla.Client("your_api_key")
# API
print(client.API.add_token("comment", "from", "allowed_domains", "allowed_servers", "allowed_methods", "allowed_types", "acme"))
# Domain
print(client.Domain.register_domain("domain", "years"))
# Server
print(client.Server.add_traffic("id", "amount", "months", "starts_today"))
# VPN
print(client.VPN.add_vpn("name", "autorenew"))
# Wallet
print(client.Wallet.get_balance())
All the methods are also available in our (not yet existing) ReadTheDocs Documentation.
You can find the documentation here soon.
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
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 njalla-0.9.0.tar.gz.
File metadata
- Download URL: njalla-0.9.0.tar.gz
- Upload date:
- Size: 21.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d1be21523053b0dedaadaea1b579141cc4457906a50e750dfd3ccf4b3e10a20
|
|
| MD5 |
4ace7143a20080879f2fe9ef272b4d69
|
|
| BLAKE2b-256 |
56a25888ab18f661345927974c938a57317f280f36b95de35b5b24aa7a03feb3
|
File details
Details for the file njalla-0.9.0-py3-none-any.whl.
File metadata
- Download URL: njalla-0.9.0-py3-none-any.whl
- Upload date:
- Size: 27.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94dee72375bb729d338af31d16751be33e66ad3053fdbf408c0549d9b833a885
|
|
| MD5 |
7bbaba639188aaf457ddaeba80be793a
|
|
| BLAKE2b-256 |
2de5d04195549bc71ee1606ec46ca092a1bd5c6f9bcfd95cf94642835733dd98
|