Skip to main content
travis appveyor MIT License

Find project modules and data files (packages and package_data for setup.py).

Installation

install from PyPI:

python3 -m pip install --user dephell_discover

Usage

Get root, packages, package_data, package dir:

from pathlib import Path
from dephell_discover import Root

root = Root(path=Path('../dephell'))

root.packages
# [Package(path=Path('../dephell/dephell'), root=Path('../dephell')), ...]

root.data
# {Data(path=Path('../dephell/dephell/templates'), ext='.j2', package=Package(...)), ...}

root.package_dir
# {'': '.'}

Package properties:

p = root.packages[-1]
p.path    # Path('../dephell/dephell/commands')
p.root    # Path('../dephell')
p.module  # 'dephell.commands'
str(p)    # 'dephell.commands'
list(p)   # [Path('../dephell/dephell/commands/base.py'), ...]

Data properties:

d = next(iter(root.data))
d.path      # Path('../dephell/dephell/templates')
d.ext       # .j2
d.package   # Package(path=Path('../dephell/dephell'), root=...)
d.module    # 'dephell'
# relative path from package root:
d.relative  # 'templates/*.j2'
str(d)      # 'templates/*.j2'
list(d)     # [Path('../dephell/dephell/templates/python.html.j2'), ...]

Meta information:

root.metainfo.summary
# 'Python project management.'

root.metainfo.authors
# ['Gram (@orsinium)']

root.metainfo.license
# 'MIT'

root.metainfo.version
# '0.7.0'

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dephell_discover-0.2.10.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dephell_discover-0.2.10-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file dephell_discover-0.2.10.tar.gz.

File metadata

  • Download URL: dephell_discover-0.2.10.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

File hashes

Hashes for dephell_discover-0.2.10.tar.gz
Algorithm Hash digest
SHA256 a2ad414e5e0fe16c82c537d6a3198afd9818c0c010760eccb23e2d60e5b66df6
MD5 1dedeb46d083c48ed38bf3b926e816a1
BLAKE2b-256 c04c8a4bcccd4b11d3a84825eccb44122b83137b0acc1a317c2ce3b324deb1b2

See more details on using hashes here.

File details

Details for the file dephell_discover-0.2.10-py3-none-any.whl.

File metadata

  • Download URL: dephell_discover-0.2.10-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

File hashes

Hashes for dephell_discover-0.2.10-py3-none-any.whl
Algorithm Hash digest
SHA256 abf190e9707d4a88f14e91be1f80e996e195b20b5400da2362e98cf19e59a1e4
MD5 da929bbd86aef3992acedb1e28a340bb
BLAKE2b-256 a63770ceb569bd1492fdc192340e8a7e4847dfd71a712a1d5a6ff04d2b75d114

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.10 This release

2 files

0.2.9

2 files

0.2.8

2 files

0.2.7

2 files

0.2.6

2 files

0.2.5

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page