pomf.lain.la uploader.
Project description
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
pip install -r requirements.txt
or install the package by running
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
lain-upload <file-path>
You can not upload files bigger than 1 gigabyte.
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 lain_upload-1.12.tar.gz
.
File metadata
- Download URL: lain_upload-1.12.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6bbc71fe7a3744f003bf0b95387853efbb4d417053772601e0ae661f68aaefc |
|
MD5 | 1ff4adfb2cd56842e72682bf2d1bac2a |
|
BLAKE2b-256 | 97c145adf8d0c7064c9ce0b2950037d99c69bc7928e21af281b2f241161d4bce |
File details
Details for the file lain_upload-1.12-py3-none-any.whl
.
File metadata
- Download URL: lain_upload-1.12-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd10672bb6fcd34203886a3bb1129ca9cff8250879796c7e2a8ca5d54fbfd36d |
|
MD5 | e44d3d25a94107a6526930c976e9430b |
|
BLAKE2b-256 | 6a7fb653cfe2d128ec4a2b106528e451e54cc493dc16a1acf1e3e913da23e27f |