Skip to content

python utulity funcs, classes, small languages, frameworks, scripts. i tend to use most optz, attr, struct, py3, eutf

Notifications You must be signed in to change notification settings

svilendobrev/svd_util

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

svd_util

python utility funcs, classes, small languages+frameworks, scripts. old or new.. collection. i tend to use most optz, attr, struct, py3, eutf

me and software


  • assignment_order.py : Obtain order of assigments in python source text namespaces.
  • attr.py : additional python-reflection tools: - multilevel getattr, setattr, import, getitemer - local vs see-through-hierarchy getattr - fail-proof issubclass() - subclasses extractor
  • bin/doprof.py : better view onto python profiler results
  • bin/filter-output.py : filter (=count-generalize) instance-or-run -specific things, e.g. memory addresses, to compare different test runs
  • bin/moddump.py : try describe all about a python module - name,path,doc,items
  • bin/oneliner.py : generate a (wiki) page from first doc line/para of input python files (e.g. for github)
  • bin/py2utf.py : autoconvert (source-files) from cp1251 to utf AND fix the "coding" line
  • bin/sortsqlitedump.py : sort/reorder sqlite .dump, for comparable outputs
  • bokluk.py : useful setup for gc-debugging
  • class_attr.py : various descriptors for class-level-attributes
  • config.py : hierarchical namespaced configuration language/engine, with types, helps, inheritance
  • cron.py : parse+create of cron/crontab files
  • datetimez.py : symmetric datetime conversions to/from text.
  • dbg.py : various debug utilities: stack-level-counter, call-stack inspections
  • dictOrder.py : ordered dictionary (by-item-creation)
  • dicts.py : key-translating dictionaries - lowercase, map; dictOrder_fromstr
  • diff.py : wrapper and ignore_space for difflib
  • escaping_codec.py : escape/unescape strings
  • eutf.py : guess utf or byte-encoding, and (on-the-fly) conversion, on text or files. python2 + python3
  • expr.py : expression-tree builder and visitor/evaluator (language)
  • facer.py : interface/protocol/API declaration language. Methods, arguments, results - types, cardinality, optionality; inheritance, specialization, cloning. Use visitors to do/generate all else.
  • fileCache.py : cache content of a file + property doing it
  • forward_resolver.py : forward-declared module.attr resolver.
  • func2code.py : inspect variables used in function, local/global - for tracing/explain
  • gencxx.py : around generating code - C, python, vim
  • hacksrc.py : source-monkey-patcher for python - extract+patch+compile a func
  • html_visitor.py : html structural visitor/extractor
  • htmlcodec.py : various html escapers
  • jgenerator.py : model-description "language" + dialects + generator of equivalent model in java + SAX + sqlite
  • lat2cyr.py : cyrillic transcripting to/from latin - e.g. qwerty, SMS, sounds-like, looks-like, etc
  • minsec.py : time minutes-seconds-frames conversions/prettyprint
  • mix.py : mix: logging destructor, valid weakref wrapper, Functor, mutex, neighbours-in-sequence ..
  • module.py : python module tools
  • money_formatter.py : text-format amount of money
  • optz.py : simple !! options-getter (wrapping optparse or else)
  • osextra.py : extra os-level funcs - execresult, touch, ..
  • py/parser3.py : fixed variant of py3:html.parser: m = attrfind_tolerant.search(rawdata[:endpos], k)
  • py/unquote3.py : py2 version of py3 urllib.parse.unquote
  • py3.py : using same code for python2 and python3
  • recorder.py : recorder + re-player of object usage - method calls with their args
  • rim_digit.py : rome digits to numeric
  • setOrder.py : ordered set - by-item-creation
  • slovom.py : numbers in words in Bulgarian 2008? friends | числа словом
  • stacks.py : stack with automatic (ref-counted) cleanup/pop
  • str.py : hierarchical str()/print; notSetYet singleton
  • struct.py : structure as dict as structure, attr-to-item, set-keyword-attrs with allowed/mandatory-validation
  • testeng/ : testing engine with analysis/data-oriented syntax/structure of cases; simple single-or-multi-case unittestcase
  • timezone.py : some usable default timezone implementation
  • tracer.py : trace+explain/log runtime python code - instrumentation of variables, methods
  • txt.py : text encodings, escaping, whitespace stripping
  • ui/ : language/engine for dialog/form layout description - text-parser, tree-builder, fields; menus
  • url.py : symmetrical url-to/from-dict conversions
  • url_cyr2regexp.py : cyrillic urls into apache regexps/rewrites - multi-transcriptions, 1251/utf, ignorecase, etc
  • validator4regexp.py : validators using regexps
  • vreme.py : Universal Calendar Time and Pediods and arithmetics; physical, logical (next-working-day), inherit/compose, count, compare, overlap, cut
  • wither.py : empty context for with operator - i.e. with (somefile or wither): ...
  • xcalc2.py : wave-like dependency-tree expression/rule re-calculation
  • xml2obj.py : xml into object, multi-language values
  • yamls/ : usability-tuned yaml i/o - human re-editable - aligned, ordered, min-clutter

About

python utulity funcs, classes, small languages, frameworks, scripts. i tend to use most optz, attr, struct, py3, eutf

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages