Skip to main content

An asynchronous library to download.

Project description

downloadit

An async library to download videos, photos, musics and files.

Getting Started

To Install downloadit, simply do

pip install downloadit

because of downloadit has a light sqlite server besides, the next step is:

alembic init migrations

go to alembic.ini

sqlalchemy.url = sqlite:///app.db

go to migrations/env.py

from downloadit.models.app_model import Base 

target_metadata = Base.metadata

get back to terminal and make commands done.

alembic revision --autogenerate
alembic upgrade head

Now enjoy downloadit ;)

Examples

import asyncio

from downloadit import Download, 
download_multi_media

async def main():
    # download a video or music
    await Download(
        url="https://www.namasha.com/videos--144p.mp4",
        quality=144,
        status_bar=True, # default is False
    ).recognizer()

    # download a photo
    await Download(
        url="https://www.namasha.com/photos.jpg"
        ).recognizer()

asyncio.run(main())

async def main():
    await download_multi_media(
        'url',
        'url',
        'url',
        .
        .
        .
    )
asyncio.run(main())

output sample of download a video.

image info

Extra

if you want to know where your downloads location is in your system:

from downloadit.constances import BASE_DIR
print(BASE_DIR)

# you can change it by editing BASE_DIR from source code

if you want to know about your download status:

from downloadit.models.app_model import read

read()

out put :

image info

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

downloadit-1.0.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

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

downloadit-1.0.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file downloadit-1.0.0.tar.gz.

File metadata

  • Download URL: downloadit-1.0.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for downloadit-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5c1bc247882d0dc71aef40e8830b438c33a985f4c23344e9b0301f8b80b3f061
MD5 9798f03c6a4e3532e56a76ab2528bde3
BLAKE2b-256 999174ce7bcee5de2019848103763db1a4e5fd04a088739b9e8424d6a35bbcae

See more details on using hashes here.

File details

Details for the file downloadit-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: downloadit-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for downloadit-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c6d9a79cfb7b720da7c2fd03058e98dfff95327d3c3237c97b1cb05ade2edd45
MD5 fdd8feb060d26685b207a2cbcf87535a
BLAKE2b-256 e998e18180dec0469ab0c3015cde72729bca7220f388968be14f47ff629273fa

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