Differences between revisions 2 and 18 (spanning 16 versions)
Revision 2 as of 2014-08-06 12:03:18
Size: 329
Editor: PieterSmit
Comment:
Revision 18 as of 2023-10-10 00:31:07
Size: 1755
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
 * [[SplitSyslogInPython]]  * pyenv - shell tool for selecting Python interpret
 * [[SplitSyslogInPython]] , [[Python/AsyncIo]] [[https://dbader.org/blog/python-dunder-methods|__Dunders__]], [[Python/Types]]

 * Retry with [[https://julien.danjou.info/python-tenacity/]]
 * Contextmanager [[https://jeffknupp.com/blog/2016/03/07/python-with-context-managers/|20160307]] add '''__enter__''' and '''__exit__''' to a class or use [[https://docs.python.org/2.7/library/contextlib.html|yield]] in function
Line 8: Line 12:

 * FSM - Clean state machine http://www.talyarkoni.org/blog/2014/10/29/yet-another-python-state-machine-and-why-you-might-care/
 * Decorators - http://thecodeship.com/patterns/guide-to-python-function-decorators/,

== Python Virtual Environments ==
 * Since python 3.5 use pyton to create {{{
   python3 -m venv myproject/
   #activate
   source myproject/bin/activate
}}}

== Python libraries ==

=== Python command line ===
 * typer -> nice -> [https://typer.tiangolo.com/]

 * $ pip install [[https://github.com/kennethreitz/delegator.py/blob/master/README.rst|delegator.py]]
 
 * $ pip3 install timeloop [[https://medium.com/greedygame-engineering/an-elegant-way-to-run-periodic-tasks-in-python-61b7c477b679]]

 * [[https://github.com/pallets/click/blob/master/README.rst|click]]

== Python modules/libraries ==
 * argh - generates command line arguments from a function parameters
 * redis_cache - decorator to cash function responses in redis

PYTHON links

Python Virtual Environments

  • Since python 3.5 use pyton to create

       python3 -m venv myproject/
       #activate
       source myproject/bin/activate

Python libraries

Python command line

Python modules/libraries

  • argh - generates command line arguments from a function parameters
  • redis_cache - decorator to cash function responses in redis

...


CategoryDevelopement

Python (last edited 2023-10-10 00:31:07 by PieterSmit)