Commit ad5ae8d
committed
2.15.0 - Improved
- `privex.helpers.extras.git`
- Added PyDoc comment block for module
- Renamed `AsyncGit` to `_AsyncGit` and removed the `awaitable_class` decorator.
The decorator causes problems with IDEs being able to provide code insight when using it,
and also prevents Sphinx being able to document it.
To resolve this, while keeping `awaitable_class` functionality, `AsyncGit` is now a variable
which wraps the bare class `_AsyncGit` using `AsyncGit = awaitable_class(_AsyncGit)`, allowing
Sphinx and IDEs to be able to access the bare undecorated class when needed to provide insight,
while retaining `awaitable_class` for both async and non-async compatibility.
- Renamed `_AsyncGit._git` to `_AsyncGit.git` so that projects can cleanly access the lower level direct `git` CLI call
if they need to.
- Made several improvements to `_AsyncGit.commit`
- Added `_AsyncGit.__getattr__` magic method, which allows unimplemented sub-command calls such as `.count_objects()`
to be automagically translated into `.git('count-objects')`
- Added/improved PyDoc blocks for most methods
- Added some missing requirements to `requirements.txt`
- Bumped dependency versions in `extras/docs.txt`
- Changed the relative module imports in `privex.helpers.cache.asyncx.__init__` to be absolute imports, as the
relative imports were causing problems with Sphinx being able to read the module.
- Comments have been cleaned up to comply with Sphinx properly, along with adding and improving PyDoc across
several modules in privex-helpers - too many changes to list (and they don't affect functionality so...)
**Documentation**
- Overhauled the documentation to be compatible with modern Sphinx
- Changes to the docs config file
- Stopped autodoc/autosummary overwriting existing RST files without warning
- Attempted to silence some of the annoying warnings which I can't fix without breaking references, though
silencing hasn't been very effective.
- Adjusted the Makefile to use `-b` instead of `-M`, and added a `clean` segment, since `make clean` no longer
works via sphinx-build
- Re-generated and hand corrected a lot of API documentation, since many parts of the API docs were no longer rendering correctly
due to changes in Sphinx.
- Replaced bare module path titles like `privex.helpers.cache`, with more friendly and descriptive titles such as
`Framework-independent Cache System` and `Common/General Helpers`.
- Re-organised the documentation for many existing modules
- Added documentation for the `thread` and `geoip` modules
- Re-added the documentation for `types` and `settings` (they were previously obliterated by autodoc)
- Many other improvements to the docs (a good 100+ docs files have been created/deleted/updated)extras.git + documentation/comments overhaul1 parent 8418c96 commit ad5ae8d
194 files changed
Lines changed: 1540 additions & 596 deletions
File tree
- docs
- source
- _templates/autosummary
- helpers
- cache
- asyncmemcachedcache
- asyncmemorycache
- asyncrediscache
- asyncx
- base
- asynccacheadapter
- memorycache
- collections
- dictdataclass
- common
- crypto
- format
- decorators
- extras
- git
- _asyncgit
- geoip
- geoipresult
- net
- settings
- setuppy
- tests
- test_general
- baseone
- basetwo
- inheritexample
- simpleexample
- testinspectfunctions
- testmocker
- thread
- betterevent
- safeloopthread
- stopperthread
- types
- extras
- privex/helpers
- cache
- asyncx
- extras
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
25 | 30 | | |
26 | 31 | | |
27 | 32 | | |
28 | | - | |
| 33 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
59 | 67 | | |
60 | 68 | | |
61 | 69 | | |
| |||
Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 0 additions & 6 deletions
This file was deleted.
0 commit comments