lain-upload


Namelain-upload JSON
Version 1.10 PyPI version JSON
download
home_pagehttps://github.com/NecRaul/lain.la-pomf-uploader
Summarypomf.lain.la uploader.
upload_time2024-02-24 10:19:53
maintainer
docs_urlNone
authorNecRaul
requires_python
license
keywords python uploader pomf lain lain.la pomf.lain.la
VCS
bugtrack_url
requirements pyperclip requests
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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 <file-path>
```

You can not upload files bigger than 1 gigabyte.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/NecRaul/lain.la-pomf-uploader",
    "name": "lain-upload",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "python,uploader,pomf,lain,lain.la,pomf.lain.la",
    "author": "NecRaul",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/b0/73/a03bc828d78259398641d09f2b4b3a0506ca0fe7220ff687953050fba4ac/lain_upload-1.10.tar.gz",
    "platform": null,
    "description": "# lain.la-pomf-uploader\n\npomf.lain.la uploader.\n\n## Requirements\n\n`requests` is used to upload the file.\n\n`pyperclip` is used to copy the link to the clipboard.\n\nIf you want to build this on your own, you can install the requirements with\n\n```Python\npip install -r requirements.txt\n```\n\nor install the package by running\n\n```Python\npip install lain-upload\n```\n\nPython'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.\n\n## How it works\n\nFiles 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.\n\nI 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.\n\nYou can run the script with\n\n```Python\nlain-upload <file-path>\n```\n\nYou can not upload files bigger than 1 gigabyte.\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "pomf.lain.la uploader.",
    "version": "1.10",
    "project_urls": {
        "Documentation": "https://github.com/NecRaul/lain.la-pomf-uploader#readme",
        "Homepage": "https://github.com/NecRaul/lain.la-pomf-uploader",
        "Source": "https://github.com/NecRaul/lain.la-pomf-uploader"
    },
    "split_keywords": [
        "python",
        "uploader",
        "pomf",
        "lain",
        "lain.la",
        "pomf.lain.la"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c6e07456696f2d6a942b0b4d715e12afa44b31c647bea950593c505fc8d8bc42",
                "md5": "9e154f3130abd7e853ddcf2b704a4641",
                "sha256": "71edb2f88a91dc6cf296be3aa50457fdb9d3f2c95ac0a10bba898a0f9d1d495b"
            },
            "downloads": -1,
            "filename": "lain_upload-1.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9e154f3130abd7e853ddcf2b704a4641",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 12677,
            "upload_time": "2024-02-24T10:19:51",
            "upload_time_iso_8601": "2024-02-24T10:19:51.567559Z",
            "url": "https://files.pythonhosted.org/packages/c6/e0/7456696f2d6a942b0b4d715e12afa44b31c647bea950593c505fc8d8bc42/lain_upload-1.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b073a03bc828d78259398641d09f2b4b3a0506ca0fe7220ff687953050fba4ac",
                "md5": "b2ad3f0fb936d6575d5a674876e9fdb6",
                "sha256": "07e66f95a636d7c807a881147b5cf71017cd6ba7ea0a4a0db02a97bfd48fa592"
            },
            "downloads": -1,
            "filename": "lain_upload-1.10.tar.gz",
            "has_sig": false,
            "md5_digest": "b2ad3f0fb936d6575d5a674876e9fdb6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 11996,
            "upload_time": "2024-02-24T10:19:53",
            "upload_time_iso_8601": "2024-02-24T10:19:53.078347Z",
            "url": "https://files.pythonhosted.org/packages/b0/73/a03bc828d78259398641d09f2b4b3a0506ca0fe7220ff687953050fba4ac/lain_upload-1.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-24 10:19:53",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "NecRaul",
    "github_project": "lain.la-pomf-uploader",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "pyperclip",
            "specs": [
                [
                    ">=",
                    "1.8.2"
                ]
            ]
        },
        {
            "name": "requests",
            "specs": [
                [
                    ">=",
                    "2.31.0"
                ]
            ]
        }
    ],
    "lcname": "lain-upload"
}
        
Elapsed time: 0.20691s