Get PyPi Package information.
Project description
scrapypi is used to get pypi package information using python.
scrapypi can be used to get package version, name, licence, author, summary and package download statistics.
Insallation
python -m pip install scrapypi
Usage
Type scrapypi in terminal or command prompt to scrapypi file for getting downloads statistics. scrapypi can also be used in code.
$ scrapypi
Below are examples and functions and classes in scrapypi for data fetching.
from scrapypi import info, stats, licence
# Get package information. You can either get information using package name or package pypi url.
info(<package_name>) # returns a dictionary of information.
# Get package full statistics, including download values everyday of package upload, date and number of downloads.
statistics = stats(<package_name>)
statistics.dataset() # get daily download counts of package since first day of release.
statistics.get_total() # get total number of downloads since first day of package release.
You can also get package name and version using the version function.
from scrapypi import version
version(<package_name>) # returns package name and version in a tuple. (name, version)
Use the version function if you need to get those information fast. But i recommend using the info function.
Use the main() function to run the scrapypi script for statistics fetcher.
:- Change Log -:
0.0.1 -- [ 16 JULY 2023 ]
[ NOTICE ]
[ ! ] - Initial Release
0.0.2 -- [ 16 JULY 2023 ]
[ FIXED ]
[+] - Import and Run
0.0.3 -- [ 17 JULY 2023 ]
[ ADDED ]
[+] Package download statistics
[+] More Package info
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 scrapypi-0.0.3.tar.gz
.
File metadata
- Download URL: scrapypi-0.0.3.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5ba0fc2158d121fb5331eb73a7bb3ed27df08f8ec0d8b2b03591c1cc3d34b49 |
|
MD5 | 8431ca77c398fc9955c140207029f046 |
|
BLAKE2b-256 | 27d9b2053c87a5fa0785f029381dd7ffbe60094bf11139d95c176d421904fb2c |
File details
Details for the file scrapypi-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: scrapypi-0.0.3-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b126ea1d0b6bea55664e27890cdf9dd97be80ac546593db08ce2453902eb3a30 |
|
MD5 | c81c3a25be2ed4861962876b30acc661 |
|
BLAKE2b-256 | f7969246a81f9bb7c11185a0ba8e4d8a68e7ba77ddffad27c05de169d78d5afa |