Skip to main content

retrieve package specification from setup.py

Project description

setup.py contains a function named setup.

When writing software that works with python packages it is very inconvenient to retrieve the package metadata from setup.py. This package makes it easy, just point it at setup.py and get a dict.

>>> import setupreader, json
>>> foo = setupreader.load('setup.py')
>>> print json.dumps(foo, indent=4)
{
    "description": "retrieve package specification from setup,py",
    "install_requires": [
        "setuptools",
        "mock"
    ],
    "zip_safe": false,
    "keywords": "",
    "packages": [],
    "classifiers": [],
    "entry_points": {
        "console_scripts": [
            "read-setup = setupreader:main"
        ]
    },
    "name": "setupreader",
    "license": "",
    "author": "Lars van de Kerkhof",
    "url": "",
    "include_package_data": true,
    "py_modules": [
        "setupreader"
    ],
    "long_description": "",
    "author_email": "lars@permanentmarkers.nl",
    "version": "0.0.1"
}

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

setupreader-0.0.2.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file setupreader-0.0.2.tar.gz.

File metadata

  • Download URL: setupreader-0.0.2.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for setupreader-0.0.2.tar.gz
Algorithm Hash digest
SHA256 f54c5cc2b404147379f3b37f51f9796fabc00604d6b6ae9ffde16953b427ecef
MD5 b4776d9c16a156ac3ea4d35126e86125
BLAKE2b-256 386815e36342981f819fbb3001fb6323e331e01867b4954ef2f39c1340024432

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