pypi simple https://pypi.org/simple/ iterator
Project description
Installation
$ [sudo] pip install pypi-simple-iter
Examples
import pypi_simple_iter
for slug, name in pypi_simple_iter.iter_projects():
print(slug,name)
iterate from file:
import pypi_simple_iter
import requests
r = requests.get('https://pypi.org/simple/')
open('/tmp/simple.txt','w').write(r.text)
for slug, name in pypi_simple_iter.iter_projects_from_file('/tmp/simple.txt'):
print(slug,name)
0 0
0-0 0-._.-._.-._.-._.-._.-._.-0
00000a 00000a
0-0-1 0.0.1
007 007
00print-lol 00print_lol
00smalinux 00SMALINUX
...
startswith
for slug, name in pypi_simple_iter.iter_projects(startswith='Django'):
print(slug,name)
django Django
django10-enumfield django10-enumfield
django1-11-zebra django1.11-zebra
...
Links
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
File details
Details for the file pypi-simple-iter-2020.12.3.tar.gz
.
File metadata
- Download URL: pypi-simple-iter-2020.12.3.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9b2671ca6e8e41959b4399033445274d05f0c44e6c20772cc4f7a9da8d4a487 |
|
MD5 | c3e2f1f9f5c2beb047936040e8272331 |
|
BLAKE2b-256 | fef66bdb5ab34baba5a4b4f14c3e3d108ef021372f33c8e959cf58aa1d14fa9a |