Skip to content

smutel/pylib

 
 

Repository files navigation

Hari Sekhon Python / Jython Library

Build Status Codacy Badge Coverage Status Dependency Status Platform DockerHub

My personal Python library, full of lots of validation code and utility functions.

Only supports Python 2 for now.

Build + Unit Tests

make &&
make test

Continuous Integration is run on this repo to build and test it (~400 unit tests, plus custom tests).

Configuration

Strict validations include host/domain/FQDNs using TLDs which are populated from the official IANA list, a snapshot of which is shipped as part of this project.

To update the bundled official IANA TLD list with the latest valid TLDs do

make tld
Custom TLDs

If using bespoke internal domains such as .local or .intranet that aren't part of the official IANA TLD list then this is additionally supported via a custom configuration file resources/custom_tlds.txt containing one TLD per line, with support for # comment prefixes. Just add your bespoke internal TLD to the file and it will then pass the host/domain/fqdn validations.

See Also

Repos using this library:

  • PyTools - 40+ programs - Hadoop, Spark (PySpark), Pig => Solr / Elasticsearch indexers, Pig Jython UDFs, Ambari Blueprints, AWS CloudFormation templates, HBase, Linux, IPython Notebook, Data converters between different data formats and syntactic validators for Avro, Parquet, CSV, JSON, YAML...
  • Advanced Nagios Plugins Collection - 280+ programs - the largest repo of monitoring code for Hadoop & NoSQL technologies, every Hadoop vendor's management API and every major NoSQL technology (HBase, Cassandra, MongoDB, Elasticsearch, Solr, Riak, Redis etc.) as well as traditional Linux and infrastructure

See also:

  • Tools - 25+ programs for Hadoop, NoSQL, Solr, Elasticsearch, Pig, Hive, Web URL + Nginx stats watchers, SQL and NoSQL syntax recasers, various Linux CLI tools

About

Python / Jython Utility Library for my other repos

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 96.7%
  • Shell 1.9%
  • Makefile 1.4%