Nekobin API Wrapper
Project description
🐱 Nekobin API Wrapper
⬇️ Installing nekobin via 🐍 pip:
pip install nekobin
🆕 Upgrading nekobin via 🐍 pip:
pip install -U nekobin
⬇️ Installing nekobin via 🌐 source:
git clone https://github.com/OpenRestfulAPI/nekobinpy
cd nekobinpy
make install
📖 Example Usage:
from nekobin import NekoBin, errors
import asyncio
nekobin = NekoBin()
async def main():
try:
neko = await nekobin.nekofy(
content="Hello World",
title="example", # Optional
author="pokurt" # Optional
)
except errors.HostDownError:
return print("Host is down at the moment")
output = "Nekofy Content:\n-----------\n"
output += "Key: " + neko.key + "\n"
output += "URL: " + neko.url + "\n"
output += "Raw URL: " + neko.raw + "\n"
if neko.title:
output += "Title: " + neko.title + "\n"
if neko.author:
output += "Author: " + neko.author + "\n"
output += "Date: " + str(neko.date) + "\n"
output += "Views: " + str(neko.views) + "\n"
output += "Length: " + str(neko.length) + "\n"
output += "Content: " + neko.content + "\n"
print(output)
if __name__ == "__main__":
asyncio.run(main())
©️ Copyrights
This Project was made by an indivial on Telegram. The person who made this API wrapper has nothing to do with Nekobin or the base source of the paste service. Therefore All rights reserved to Nekobin Paste Service's Rightful Owner Dan Himself.
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
nekobin-0.0.3.tar.gz
(2.9 kB
view details)
Built Distribution
nekobin-0.0.3-py3-none-any.whl
(16.0 kB
view details)
File details
Details for the file nekobin-0.0.3.tar.gz
.
File metadata
- Download URL: nekobin-0.0.3.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.20.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a26039a3cedaa3c66513a2193d593f0bc86ae9b9a039bf8af884a4cd4a67a84 |
|
MD5 | 3326f4fa48d973948d627eb2d3607b6f |
|
BLAKE2b-256 | 01b0c06d9d72ade0928821e9f69e22c0dd5a6c743cb32d1f57141c9f919a5c86 |
File details
Details for the file nekobin-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: nekobin-0.0.3-py3-none-any.whl
- Upload date:
- Size: 16.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.20.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0059b7d34fd29af6080216f28811100c2f72f0b1badbba1c3ee6838efe1d25bf |
|
MD5 | 6b123cf49c78cc2ddea19eb87a55f407 |
|
BLAKE2b-256 | 69acb6f12c710c3b476e64feebe8fb25871e9b85fdf7d5089cf21f11bb39bef9 |