Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lain_upload-1.9.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lain_upload-1.9-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file lain_upload-1.9.tar.gz.

File metadata

  • Download URL: lain_upload-1.9.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for lain_upload-1.9.tar.gz
Algorithm Hash digest
SHA256 6f92d97cffe61f8d787a036f7b9c1ccd8781b48a12385eca75e8ee28ebb2c37f
MD5 dcb911355e4418caa084ee6ee7e63afa
BLAKE2b-256 0bd7f4e62051b312d29c6fe7246af49a164e03037e13cfe4f494164a4eadf081

See more details on using hashes here.

File details

Details for the file lain_upload-1.9-py3-none-any.whl.

File metadata

  • Download URL: lain_upload-1.9-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for lain_upload-1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 789f0b4c66888036cd010db6e5d0ccbef934f1bc02aab0b99a0dc2d79e83663b
MD5 dbe3767821a3d65cc12ab899f6eae7d8
BLAKE2b-256 ba5df4632f3f7bae4fb386f90b88916a7e37deaede569eba77f70cd65d855f46

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page