Skip to main content

get metadata for python modules

Project description

https://travis-ci.org/toabctl/metaextract.png?branch=master

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

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

metaextract-0.0.4.tar.gz (4.3 kB view details)

Uploaded Source

File details

Details for the file metaextract-0.0.4.tar.gz.

File metadata

  • Download URL: metaextract-0.0.4.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for metaextract-0.0.4.tar.gz
Algorithm Hash digest
SHA256 5a42e22f4abd8058a4a8e3cc5c4878f6081af17701060f5e5eb931d376ba8c08
MD5 88fae0883465a04809080486d366aa35
BLAKE2b-256 4c45060f0e1cb80fd3e5756fddf946a4cd74b565792fbb4fc6b950632f9adf31

See more details on using hashes here.

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