To track previous or nearest import lines and show helper documents automatically
Project description
docs_reader
- A simple tool to track previous or just nearest (immediate) import lines and show helper documents automatically.
installation
pip install docs-reader
or
pip install docs_reader
usage
1. ...
2. from doc_reader import DocsReader
3. DocsReader()
4. ...
5. ...
- desciptions:
- it should be imported after statement, not in top or first line, otherwise it will be dectect nothing.
- statement
- than the next line will be ->
from doc_reader import DocsReader - than ->
DocsReader()
Examples:
-
this tool / module help to automatically find and show the essentials documents of the given nearest import module with offline mode.
Examples:
-
example 1:
- import in your .py (e.g. main.py)
1. import numpy # this will be first line 2. from docs_reader import DocsReader # next one 3. DocsReader() # next one 4. ... descriptions # run the <file>.py (e.g. python main.py) # after that it will automatically show it's documentation. 1. in the above 'numpy' is import that's why it show only 'numpy' documentation.
-
example 2:
- if your file has contained multiple import statement than it will detect the just (immediate) previous import line and it shows the helper documnetation in your terminal by running your
filename.pyfile.
1. import numpy # first one 2. import pandas as pd # this is the immediate previous line of DocsReader 3. from doc_reader import DocsReader 4. DocsReader() 5. ... descriptions: # run the <file>.py (e.g. python main.py) # now it show only the nearest modules documentation of pandas as: pd.
- if your file has contained multiple import statement than it will detect the just (immediate) previous import line and it shows the helper documnetation in your terminal by running your
-
example 3:
- if any newline is contains before the
from doc_reader import DocsReader, it can't be parse.
1. import numpy 2. import pandas as pd 3. # this is a newline, can't be parse 4. from doc_reader import DocsReader 5. DocsReader() 6. .... descriptions: # run the <file>.py (e.g. python main.py) # it will show that "could not parse the module" if newlines are contains.
- if any newline is contains before the
-
bugs fix
- it's just a beta version, still working.
- if any bugs found than let me know
module version
version = 0.1.0
author
- Anjan maity
contact
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.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file docs_reader-0.1.0.post1.tar.gz.
File metadata
- Download URL: docs_reader-0.1.0.post1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9cf13df37954919b4056c7696790f0c6a8d618576390cd1adf814e2cb53bddf
|
|
| MD5 |
9c1c3531b507dec0a041baa1025ae3d6
|
|
| BLAKE2b-256 |
c87edce94a4e3261117fce24a606739bb1f850bf6d9985092558cdd3de5e11d0
|
File details
Details for the file docs_reader-0.1.0.post1-py3-none-any.whl.
File metadata
- Download URL: docs_reader-0.1.0.post1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6ca40e53766a288ae45f805c8ed3fc180b77add04adf693033895e98e401fde
|
|
| MD5 |
29468e4d14ec0e8072d9a428bcd93c05
|
|
| BLAKE2b-256 |
95b08ee04e96922358d31de268b2861e47424ac58ab87451156a1a448aa68594
|