get metadata for python modules
Project description
metaextract is a tool to collect metadata about a python module. For example you may have a sdist tarball from the Python Package Index and you want to know it’s dependencies. metaextract can collect theses dependencies. The tool was first developed in py2pack but is now it’s own module to be useful for others, too.
Installation
To install metaextract from the Python Package Index, simply:
$ pip install metaextract
Usage
To extract the metadata for a python module using setup.py, do:
$ metaextract my-archive-file.tar.gz
This will print a json blob to stdout which contains i.e. install_requires, extras_require and friends extracted from the given archive file.
If you already have some source code available (i.e. a git checkout) for some project you can also run the setup.py file with the metaextract distutils command:
$ python setup.py --command-packages=metaextract metaextract
This will print the metadata as json. If you want to write the data to a file, do:
$ python setup.py --command-packages=metaextract metaextract -o output-file
Hacking and contributing
Fork the repository on Github to start making your changes to the master branch (or branch off of it). Don’t forget to write a test for fixed issues or implemented features whenever appropriate. You can invoke the testsuite from the repository root directory via tox:
$ tox
Bugs
If you run into bugs, you can file them in the issue tracker.
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.