Wrapper for jw.org APIs
Project description
Python wrappers for a few JW.ORG APIs.
Documentation: https://jwlib.readthedocs.io.
Installation
This is the preferred method to install jwlib is using pip, as it will always install the most recent stable release.
$ pip install jwlib
Usage
TODO
Development
Download the source code from the repo or by using git.
$ git clone git://github.com/allejok96/jwlib
jwlib uses hatch as its build system and it comes with some nice features, but it’s not strictly needed. If you want to take a simpler approach using regular old venv you can stop right here.
Otherwise let’s go ahead and install hatch. Here’s one way you can do it:
$ pip install --user pipx
$ pipx ensurepath
$ pipx install hatch
Then do a test run to download all dependencies and create a virtual environment.
$ cd jwlib
$ hatch run test
If you’re using an IDE like PyCharm probably want to configure it to use the virtual environment that hatch just created. You can find it somewhere in the hatch data directory. On Linux this will be something like ~/.local/share/hatch/env/virtual/jwlib/3onyU7Va/jwlib.
Now if you want to run a command from the terminal in the virtual environment you have to do it like so:
$ hatch run python somefile.py
When you’re satisfied with your changes, run the tests again.
$ hatch run test
This will probably fail because jwlib uses pytest-recording to record all interactions with the server and store them offline for testing. If the code tries to make a request that has not been recorded, the test will fail. In that case you must update the cassettes using the command below (this might take a while).
$ hatch run record
A list of other development related commands can be obtained with:
$ hatch run help
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
File details
Details for the file jwlib-1.0.0b1.tar.gz
.
File metadata
- Download URL: jwlib-1.0.0b1.tar.gz
- Upload date:
- Size: 5.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 726fb9eab849f55e572aaec7a49bb2307662d4a011e1b3f0c9280593af812e9d |
|
MD5 | 9f07bfef6367682b6b159ffb83533909 |
|
BLAKE2b-256 | e1473003937d25c753594582ab16c37d77a663e579a71808a2f1a14d12ac8996 |
Provenance
The following attestation bundles were made for jwlib-1.0.0b1.tar.gz
:
Publisher:
build.yml
on allejok96/jwlib
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
jwlib-1.0.0b1.tar.gz
- Subject digest:
726fb9eab849f55e572aaec7a49bb2307662d4a011e1b3f0c9280593af812e9d
- Sigstore transparency entry: 146152464
- Sigstore integration time:
- Predicate type:
File details
Details for the file jwlib-1.0.0b1-py3-none-any.whl
.
File metadata
- Download URL: jwlib-1.0.0b1-py3-none-any.whl
- Upload date:
- Size: 34.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d5c0c724505f07c6fce8a704aafe58a4fcb78140d3a8e00e04190ffca04130a |
|
MD5 | 6718b2fda413f29967e73ea91e7611a1 |
|
BLAKE2b-256 | e8a1277231e8e174906dd22a334c42d2903e2c6a09903653fa561adb2eaf963a |
Provenance
The following attestation bundles were made for jwlib-1.0.0b1-py3-none-any.whl
:
Publisher:
build.yml
on allejok96/jwlib
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
jwlib-1.0.0b1-py3-none-any.whl
- Subject digest:
7d5c0c724505f07c6fce8a704aafe58a4fcb78140d3a8e00e04190ffca04130a
- Sigstore transparency entry: 146152465
- Sigstore integration time:
- Predicate type: