codefast


Namecodefast JSON
Version 24.11.14.1 PyPI version JSON
download
home_pagehttps://github.com/ultrasev
SummaryA package for faster coding.
upload_time2024-11-13 17:03:04
maintainerNone
docs_urlNone
authorultrasev
requires_python>=3.7
licenseNone
keywords coding development tools
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            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
```python
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
```python
import codefast as cf
# read file
content = cf.csv.read('somefile.csv')
# write file
cf.csv.write(content, 'somefile.csv')
```

### 3. Manipulate normal Files
```python
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
```python
import codefast as cf
cf.info("Here we go")
cf.warn("Not good, something went wrong")
cf.error("Unexpected result")
```

### 5. Others
```python
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
```


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ultrasev",
    "name": "codefast",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "coding, development, tools",
    "author": "ultrasev",
    "author_email": "i@ultrasev.com",
    "download_url": null,
    "platform": null,
    "description": "A package encapsulating a few frequently used functions for faster Python programming. \n\n## Install\n`python3 -m pip install codefast`\n\nOr, update to latest version with:\n\n`python3 -m pip install codefast --upgrade`\n\n\n## Usage\n### 1. Manipulate JSON Files\n```python\nimport codefast as cf\n# read file\njson_content = jsn.read('json_file.json')\n# write file\njson.write(json_content, '/tmp/json_file.json)\n```\n\n### 2. Manipulate CSV Files\n```python\nimport codefast as cf\n# read file\ncontent = cf.csv.read('somefile.csv')\n# write file\ncf.csv.write(content, 'somefile.csv')\n```\n\n### 3. Manipulate normal Files\n```python\nimport codefast as cf\n# read file\ncontent = io.read('somefile.txt')\n# or content = cf.file.read\n\n# write file\nio.write(content, 'somefile.txt')\n```\n\n### 4. Logging\n```python\nimport codefast as cf\ncf.info(\"Here we go\")\ncf.warn(\"Not good, something went wrong\")\ncf.error(\"Unexpected result\")\n```\n\n### 5. Others\n```python\nimport codefast as cf\ncf.post('www.abcde.com', json={}) # encapsulate requests.post\ncf.get('wwww.example.com') # encapsulate requests.get\ncf.shell('ls -lt') # run system command\n```\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A package for faster coding.",
    "version": "24.11.14.1",
    "project_urls": {
        "Homepage": "https://github.com/ultrasev"
    },
    "split_keywords": [
        "coding",
        " development",
        " tools"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a213df13105e60e2f15a8145a6882d2393b9e721da1f02d79d6d195b75dd2e47",
                "md5": "b7dc8298c62b25172adb807313ff8af7",
                "sha256": "99ab01202fc63a1d02279307321f9dedc1a97ac739ed91806c654e567f5ec2d4"
            },
            "downloads": -1,
            "filename": "codefast-24.11.14.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b7dc8298c62b25172adb807313ff8af7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 43908,
            "upload_time": "2024-11-13T17:03:04",
            "upload_time_iso_8601": "2024-11-13T17:03:04.002906Z",
            "url": "https://files.pythonhosted.org/packages/a2/13/df13105e60e2f15a8145a6882d2393b9e721da1f02d79d6d195b75dd2e47/codefast-24.11.14.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-13 17:03:04",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "codefast"
}
        
Elapsed time: 0.43772s