Skip to main content

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

readme42.com

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

pypi-simple-iter-2020.12.3.tar.gz (1.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page