Pre-release
This release is a pre-release and may not be stable for production use.
Just Read, Just Write, Just Right
Free software: MIT license
JustFile is a Python library that provides a function to either read, write, or append.
It’s pretty straight-foward. No creating a file handle. no with-syntax. Just reading from a path.
Example
>>> from justfile.io import read
>>> nginx_content = read('/etc/nginx/nginx.conf')
>>> nginx_content
[[ Whatever's in /etc/nginx/nginx.conf ]]
>>> # But what if it doesn't exist?
>>> not_found = read('/file/not/found.txt')
>>> not_found
None
Installation
pip install justfile
You can also install the in-development version with:
pip install https://gitlab.com/src-r-r/python-justfile/-/archive/master/python-justfile-master.zip
Documentation
Development
To run the all tests run:
python3 -m nose
Note, to combine the coverage data from all the tox environments run:
Windows |
set PYTEST_ADDOPTS=--cov-append tox |
|---|---|
Other |
PYTEST_ADDOPTS=--cov-append tox |
Release files for justfile 0.0.1a0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| justfile-0.0.1a0.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| justfile-0.0.1a0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 7.0 kB
Release files / justfile-0.0.1a0.tar.gz
| Download URL | justfile-0.0.1a0.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0f12000a1da84585402daff428fb842854d81574b923cb130af875f46ce43b4a
|
|
BLAKE2b-256 checksum How to use checksums |
9f22db3cd9161dd2a773f8fc5c975410c7dd5531e68788574a056d852de28104
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.9 CPython/3.8.2 Linux/5.4.0-37-generic
|
Release files / justfile-0.0.1a0-py2.py3-none-any.whl
| Download URL | justfile-0.0.1a0-py2.py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
75ba63146bf24029696e31ee04d58dbbacf5443b27e895c69973e9bfd1f17a92
|
|
BLAKE2b-256 checksum How to use checksums |
fe2c2b851b151f210b894c9a32f237e8badb58d70ac895294b4a1ddc78c517db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.9 CPython/3.8.2 Linux/5.4.0-37-generic
|