Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/CustomIcon/nekobinpy
Asynchronous Nekobin API Wrapper for Python3
https://github.com/CustomIcon/nekobinpy
Last synced: 3 months ago
JSON representation
Asynchronous Nekobin API Wrapper for Python3
- Host: GitHub
- URL: https://github.com/CustomIcon/nekobinpy
- Owner: CustomIcon
- License: gpl-3.0
- Created: 2021-01-08T16:46:10.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-07-23T02:45:42.000Z (over 1 year ago)
- Last Synced: 2024-06-28T14:31:42.982Z (5 months ago)
- Language: Python
- Size: 22.5 KB
- Stars: 11
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## đą 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 asyncionekobin = 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 += "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](https://t.me/DeprecatedUser). The person who made this API wrapper has nothing to do with [Nekobin](https://nekobin.com) or the base source of the paste service. Therefore All rights reserved to [Nekobin](https://nekobin.com) Paste Service's Rightful Owner [Dan](https://github.com/delivrance) Himself.