wells python utilities
wells is a collection of python utilities:
Most common and general utilities:
utils common utilities. sequence, string and others.
Other included utilities:
bashscript_utils read and write bashrc like config files (e.g. A=B)
config config parser. parse simple a = b config files. Because I don’t like ini sections.
debug debug utilities, like @trace_time
fileutils file io, like safe_read_file, safe_write_file
iputils utilities to work with IP addresses
py3utils python 3 portability issue helper. similar to six.
redisutils utilities when working with redis, including some converters for py3.
shellutils shell related utilities
Installation
To install this package:
$ pip install wells
Baisc Usage
>>> import datetime
>>> from wells.utils import sha1sum, to_json
>>> sha1sum("abc")
'a9993e364706816aba3e25717850c26c9cd0d89d'
>>> to_json({"start_date": datetime.date.today()})
'{"start_date": "2017-04-23"}'
>>> import wells.utils
>>> help(wells.utils)
Documentation
External documentation is not available yet. Type help(<module_name>) to get document in python REPL. You can also read examples in unit tests.
License
Copyright (C) 2019 Yuanle Song <sylecn@gmail.com>
This library is licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
ChangeLog
v1.0.0 2017-04-23 - init release.
Release files for wells 1.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wells-1.5.0.tar.gz | 16.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wells-1.5.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 43.5 kB
Release files / wells-1.5.0.tar.gz
| Download URL | wells-1.5.0.tar.gz |
|---|---|
| Size | 16.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ba4c3d6b5f991ff542070f582b2f695951997d165d414eb6e219f29bc71742c
|
|
BLAKE2b-256 checksum How to use checksums |
15a20dee8ee437d85d420d8e56c391828d3ae05806a837ba34ad52d4a3066a1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3
|
Release files / wells-1.5.0-py2.py3-none-any.whl
| Download URL | wells-1.5.0-py2.py3-none-any.whl |
|---|---|
| Size | 26.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a6c936aeb45e9742b49c603ef1d247e71ca81b8b1f94b12e0a6ae7e48757ba8a
|
|
BLAKE2b-256 checksum How to use checksums |
23f1810781104bff9765560f6800ac87bf96ea2abda4728a67fff4d6c7101b75
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3
|