forked from MarketSquare/awesome-robotframework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquery_pypi
More file actions
executable file
·24 lines (17 loc) · 712 Bytes
/
query_pypi
File metadata and controls
executable file
·24 lines (17 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Prints all PyPi projects which make use of one or all of the
PyPi trove classifiers avilable for the framework.
The script has been tested running under Python 3.6.8.
"""
import xmlrpc.client as xmlrpclib
client = xmlrpclib.ServerProxy('https://pypi.python.org/pypi')
# get all PyPi projects which have at least one classifier set
trove_classifiers = ["Framework :: Robot Framework", "Framework :: Robot Framework :: Library", "Framework :: Robot Framework :: Tool"]
pypi_projects = []
for tc in trove_classifiers:
tc_pypi_projects = [p[0] for p in client.browse([tc])]
pypi_projects += tc_pypi_projects
for p in set(pypi_projects):
print(p)