Skip to main content

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

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 details)

Uploaded Source

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

Hashes for pypi-simple-iter-2020.12.3.tar.gz
Algorithm Hash digest
SHA256 b9b2671ca6e8e41959b4399033445274d05f0c44e6c20772cc4f7a9da8d4a487
MD5 c3e2f1f9f5c2beb047936040e8272331
BLAKE2b-256 fef66bdb5ab34baba5a4b4f14c3e3d108ef021372f33c8e959cf58aa1d14fa9a

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2020.12.3 This release

1 file

2020.7.1

1 file

2019.4.14

1 file

2019.4.13

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page