Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/necraul/lain.la-pomf-uploader
pomf.lain.la uploader
https://github.com/necraul/lain.la-pomf-uploader
lain pomf python python3 requests uploader
Last synced: about 5 hours ago
JSON representation
pomf.lain.la uploader
- Host: GitHub
- URL: https://github.com/necraul/lain.la-pomf-uploader
- Owner: NecRaul
- License: lgpl-2.1
- Created: 2023-08-29T08:15:37.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-24T10:19:13.000Z (9 months ago)
- Last Synced: 2024-04-25T14:03:41.102Z (7 months ago)
- Topics: lain, pomf, python, python3, requests, uploader
- Language: Python
- Homepage: https://pypi.org/project/lain-upload/
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lain.la-pomf-uploader
pomf.lain.la uploader.
## Requirements
`requests` is used to upload the file.
`pyperclip` is used to copy the link to the clipboard.
If you want to build this on your own, you can install the requirements with
```Python
pip install -r requirements.txt
```or install the package by running
```Python
pip install lain-upload
```Python's native `os` (used to check for file size), `argparse` (parse return request and set command argument) and `setuptools` (used to build the script) packages are also used.
## How it works
Files below the file size 1GB can be uploaded to `pomf.lain.la` and `pomf2.lain.la` making necessary API calls to `https://pomf.lain.la/upload.php` endpoint.
I just wrapped it inside said API calls inside Python and added validation to check for size. Links are printed on the terminal and copied to clipboard for ease of use.
You can run the script with
```Python
lain-upload
```You can not upload files bigger than 1 gigabyte.