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 all daily download counts of package in the year.
statistics.get_total() # get total number of downloads.
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
0.0.4 -- [ 18 JULY 2023 ]
[ FIXED ]
[+] - windows support
0.0.5 -- [ 18 JULY 2023 ]
[ FIXED ]
[+] - temp file furge
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.5.tar.gz
.
File metadata
- Download URL: scrapypi-0.0.5.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 | 0e6b91bd2ca37a41c10dde23f4a4df602324f75a471594296d9c3767762a5d2a |
|
MD5 | 1a637c2a8ef251e6a824f82ef0cad5ae |
|
BLAKE2b-256 | 1666dd95fd2ff53200b0ed6f6d6023819fe71b8e358bff90f00744f1c9511a31 |
File details
Details for the file scrapypi-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: scrapypi-0.0.5-py3-none-any.whl
- Upload date:
- Size: 8.2 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 | 7ca46911b448543dd69a689136886bb53aad8740013ab83465213f82e70f5113 |
|
MD5 | cf18896811cf9f4d3177e90a517daeeb |
|
BLAKE2b-256 | 2cd8eb47043197e27b177d7d63b57ee26110a221436ef96982126375a6b0ee1c |