semvec/pypi-packages huggingface dataset:
docspec-python 2.2.2
A parser based on lib2to3 producing docspec data from Python source code.
Requires Python: >=3.8

  [docspec]: https://github.com/NiklasRosenstein/docspec

# docspec-python

A parser based on `lib2to3` procuding [docspec][] data from Python source code.

Example:

```
from docspec_python import parse_python_module
import docspec, sys
docspec.dump_module(parse_python_module(sys.stdin, print_function=False), sys.stdout)
```

```
$ docspec-python -p docspec | docspec --dump-tree --multiple | head
module __init__
| data __author__
| data __version__
| data __all__
| data _ClassProxy
| data _mapper
| class Location
| | data filename
| | data lineno
| class Decoration
```

---

<p align="center">Copyright &copy; 2020, Niklas Rosenstein</p>
docspec 2.2.2
Docspec is a JSON object specification for representing API documentation of programming languages.
Requires Python: >=3.8

# docspec

This Python packages provides

* A library to (de-) serialize Docspec conformat JSON payloads
* A CLI to validate and introspect such payloads

Example:

```py
import docspec, sys
for module in docspec.load_modules(sys.stdin):
  module.members = [member for member in module.members if member.docstring]
  docspec.dump_module(sys.stdout)
```

```
$ docspec module.json --dump-tree
module docspec
| class Location
| | data filename
| | data lineno
| class Decoration
| | data name
# ...
```

The `docspec` Python module requires Python 3.5 or newer.

---

<p align="center">Copyright &copy; 2020, Niklas Rosenstein</p>