A package for faster coding.
Project description
A package encapsulating a few frequently used functions for faster Python programming.
Install
python3 -m pip install codefast
Or, update to latest version with:
python3 -m pip install codefast --upgrade
Usage
1. Manipulate JSON Files
import codefast as cf
# read file
json_content = jsn.read('json_file.json')
# write file
json.write(json_content, '/tmp/json_file.json)
2. Manipulate CSV Files
import codefast as cf
# read file
content = cf.csv.read('somefile.csv')
# write file
cf.csv.write(content, 'somefile.csv')
3. Manipulate normal Files
import codefast as cf
# read file
content = io.read('somefile.txt')
# or content = cf.file.read
# write file
io.write(content, 'somefile.txt')
4. Logging
import codefast as cf
cf.info("Here we go")
cf.warn("Not good, something went wrong")
cf.error("Unexpected result")
5. Others
import codefast as cf
cf.post('www.abcde.com', json={}) # encapsulate requests.post
cf.get('wwww.example.com') # encapsulate requests.get
cf.shell('ls -lt') # run system command
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for codefast-24.11.6.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69360278c3aeb6813067c2d1b861b593acdf74e444f4570cbe3135e763df7a3f |
|
MD5 | ad424fdd7dda3c8a867c86d11a6e4c97 |
|
BLAKE2b-256 | f7b4a71d6db1b393daf5554160353ff00c139876e3562958ccc62452f2d040d0 |