FicHub API Wrapper
A small asynchronous wrapper for the FicHub API, made to retrieve story data from various fanfiction and original fiction sites. For more information about FicHub, see their website and git repos.
Installing
fichub-api-wrapper currently requires Python 3.8 or higher.
To install the library, run one of the following commands:
# Linux/macOS
python3 -m pip install -U git+https://github.com/Sachaa-Thanasius/fichub-api-wrapper
# Windows
py -3 -m pip install -U git+https://github.com/Sachaa-Thanasius/fichub-api-wrapper
Example
For more examples, see the examples folder.
import asyncio
import aiohttp
import fichub_api as fichub
async def main():
async with aiohttp.ClientSession() as session:
client = fichub.Client(session=session)
url = "https://www.fanfiction.net/s/13912800/1/Magical-Marvel"
story_metadata = await client.get_story_metadata(url)
print(
f"Story Metadata (link: '{story_metadata.url}')\n",
f" {story_metadata.title}\n",
f" {story_metadata.description}\n"
)
asyncio.run(main())
Metadata
Release files for fichub-api 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fichub_api-0.2.2.tar.gz | 9.2 kB | Without provenance | Details for fichub_api-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fichub_api-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for fichub_api-0.2.2-py3-none-any.whl |
Total release size: 17.4 kB
Release files / fichub_api-0.2.2.tar.gz
| Download URL | fichub_api-0.2.2.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca9f3f583ddea86e265cb0df5aa31a628ed63b0aff14f2415c2325f3ba921319
|
|
BLAKE2b-256 checksum How to use checksums |
3c96227519b0459ad1116a4498d4ddd69257ca5c5935b065ff70ccc3c71ac4e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / fichub_api-0.2.2-py3-none-any.whl
| Download URL | fichub_api-0.2.2-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e27c80f5e7d7310ec561f3340c8a3be1ca81f0130960a033f29b70ac9d865f35
|
|
BLAKE2b-256 checksum How to use checksums |
abbca968c97da0c60a7a61f4a48a02d0e33c6681d2e494f3a615507d71f4c714
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Security for fichub-api 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.