jsonr


Namejsonr JSON
Version 8.6.6 PyPI version JSON
download
home_pagehttps://github.com/jsonr-py/jsonr
SummaryHighly customizable JSON objects and dataframes, and your python toolkit all in one.
upload_time2023-12-09 07:01:20
maintainer
docs_urlNone
authorjsonr
requires_python>=3.7
licenseMIT License Copyright (c) 2023 jsonr Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords jsonr json jsonr-py jsonr-python python
VCS
bugtrack_url
requirements numpy requests pathlib pandas google-generativeai
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <h1 align="center">
  <a href="https://pypi.org/project/jsonr"><img src="https://i.ibb.co/9hg4pF2/jsonr-modified.png" alt="jsonr" border="0" width="145"></a><a href="https://pypi.org/project/jsonr"><img src="https://i.ibb.co/NK3W9Dk/jsonr-preview-modified.png" alt="jsonr" border="0" width="290">
  </a>
</h1>


# [jsonr - PyPi](https://pypi.org/project/jsonr)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/jsonr-py/jsonr/blob/master/LICENSE)
[![Python Versions](https://img.shields.io/badge/python-3.7%20|%203.8%20|%203.9%20|%203.10%20|%203.11%20|%203.12%20-blue)](https://www.python.org/downloads/)

```
jsonr: (V8.6.6)

Highly customizable JSON objects and dataframes, and your python toolkit all in one.
```

## Installing
```shell
# Linux/macOS
python3 pip install -U jsonr

# Windows
py -3 -m pip install -U jsonr
```

# Architecture
```python
.mailmap
AUTHORS
LICENSE
MANIFEST.in
README.md
SECURITY.md
VERSION
pyproject.toml
setup.cfg
setup.py
jsonr/__init__.py
jsonr/__main__.py
jsonr/help.py
jsonr.egg-info/PKG-INFO
jsonr.egg-info/SOURCES.txt
jsonr.egg-info/dependency_links.txt
jsonr.egg-info/requires.txt
jsonr.egg-info/top_level.txt
jsonr/_core/__init__.py
jsonr/_core/_binary.py
jsonr/_core/_code.py
jsonr/_core/_concurrent.py
jsonr/_core/_crypto.py
jsonr/_core/_data.py
jsonr/_core/_dcompress.py
jsonr/_core/_debug.py
jsonr/_core/_devtools.py
jsonr/_core/_dtypes.py
jsonr/_core/_file.py
jsonr/_core/_formats.py
jsonr/_core/_functional.py
jsonr/_core/_guitk.py
jsonr/_core/_idata.py
jsonr/_core/_import.py
jsonr/_core/_international.py
jsonr/_core/_iprotocols.py
jsonr/_core/_language.py
jsonr/_core/_markup.py
jsonr/_core/_math.py
jsonr/_core/_mswindows.py
jsonr/_core/_mutimedia.py
jsonr/_core/_networking.py
jsonr/_core/_os.py
jsonr/_core/_packaging.py
jsonr/_core/_program.py
jsonr/_core/_runtime.py
jsonr/_core/_superseded.py
jsonr/_core/_text.py
jsonr/_core/_unix.py
jsonr/_typing/__init__.py
jsonr/_typing/jsonr_typing_flowa.py
jsonr/_typing/jsonr_typing_json.py
jsonr/_typing/jsonr_typing_pollinations.py
jsonr/_typing/jsonr_typing_string.py
jsonr/_utils/__init__.py
jsonr/_utils/_bond.py
jsonr/_utils/_convertions.py
jsonr/_utils/_infinity.py
jsonr/_utils/_insepct.py
jsonr/bases/__init__.py
jsonr/bases/new_base.py
jsonr/core/__init__.py
jsonr/core/dataframe.py
jsonr/core/new.py
jsonr/libs/__init__.py
jsonr/libs/flowa/__init__.py
jsonr/libs/flowa/_version.py
jsonr/libs/flowa/main/__init__.py
jsonr/libs/flowa/main/decisiontree.py
jsonr/libs/flowa/main/imagemodel.py
jsonr/libs/flowa/main/labelencoder.py
jsonr/libs/flowa/types/__init__.py
jsonr/libs/flowa/utils/__init__.py
jsonr/libs/pollinations/__init__.py
jsonr/libs/pollinations/abc/__init__.py
jsonr/libs/pollinations/abc/imageprotocol.py
jsonr/libs/pollinations/abc/textprotocol.py
jsonr/libs/pollinations/ai/__init__.py
jsonr/libs/pollinations/ext/__init__.py
jsonr/libs/pollinations/types/ImageModel.py
jsonr/libs/pollinations/types/ImageObject.py
jsonr/libs/pollinations/types/TextModel.py
jsonr/libs/pollinations/types/TextObject.py
jsonr/libs/pollinations/types/__init__.py
jsonr/typing/__init__.py
jsonr/utils/__init__.py
test/test_import.py
```

## JSON Objects
```python
import jsonr

json: jsonr.JSON = jsonr.New(auto=True, some_var='thanks for using jsonr!', other_var='im a random var!', lol='lol')
```
```javascript
// >>> {'some_var': 'thanks for using jsonr!', 'other_var': 'im a random var!', 'lol': 'lol'}
```
```python
json.test: int = 123

print(json['test'])
```
```javascript
// >>> 123
```
```python
json_copy: dict = json.copy()

new_json: jsonr.JSON = jsonr.New()
new_json.to(json_copy)

print(new_json)
```
```javascript
// >>> {'some_var': 'thanks for using jsonr!', 'other_var': 'im a random var!', 'lol': 'lol', 'test': 123}
```
```python
json.wipe()
```
```javascript
// >>> {}
```
For more JSON Object Examples view the [jsonr/examples](https://github.com/jsonr-py/jsonr/blob/master/examples)

## DataFrame Objects
```python
frame = jsonr.Frame(columns=["1A TEST-A", "B", "C"], rows=[[1, 2, 3], [4, 5, 6]])
```
```javascript
// >>>      | 1A TEST-A | B | C
// >>> -----------------------
// >>> 0    |         1 | 2 | 3
// >>> 1    |         4 | 5 | 6
```
```python
print(frame._1A_TEST_A)
```
```javascript
// >>> [1, 4]
```
```python
frame.add_row([7, 8, 9])
```
```javascript
// >>>      | 1A TEST-A | B | C
// >>> -----------------------
// >>> 0    |         1 | 2 | 3
// >>> 1    |         4 | 5 | 6
// >>> 2    |         7 | 8 | 9
```
```python
frame.add_column("D", [10, 11, 12])
```
```javascript
// >>>      | 1A TEST-A | B | C |  D
// >>> ----------------------------
// >>> 0    |         1 | 2 | 3 | 10
// >>> 1    |         4 | 5 | 6 | 11
// >>> 2    |         7 | 8 | 9 | 12
```
```python
X: list = frame.drop(columns=['B', 'C']) # Creates a new dataframe to not alter the original frame.
```
```javascript
// >>>      | 1A TEST-A |  D
// >>> --------------------
// >>> 0    |         1 | 10
// >>> 1    |         4 | 11
// >>> 2    |         7 | 12
```
```python
print(frame.describe())
```
```javascript
// >>> {'1A TEST-A': {'count': 3, 'mean': 4.0, 'std': 2.449489742783178, 'min': 1, '25%': 1, '50%': 4, '75%': 7, 'max': 7}, 'B': {'count': 3, 'mean': 5.0, 'std': 2.449489742783178, 'min': 2, '25%': 2, '50%': 5, '75%': 8, 'max': 8}, 'C': {'count': 3, 'mean': 6.0, 'std': 2.449489742783178, 'min': 3, '25%': 3, '50%': 6, '75%': 9, 'max': 9}, 'D': {'count': 3, 'mean': 11.0, 'std': 0.816496580927726, 'min': 10, '25%': 10, '50%': 11, '75%': 12, 'max': 12}}
```

For more DataFrame Object Examples view the [jsonr/examples](https://github.com/jsonr-py/jsonr/blob/master/examples)

## Links
GitHub = https://github.com/jsonr-py
Repository = https://github.com/jsonr-py/jsonr
PyPi = https://pypi.org/project/jsonr

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/jsonr-py/jsonr",
    "name": "jsonr",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "jsonr,json,jsonr-py,jsonr-python,python",
    "author": "jsonr",
    "author_email": "jsonr <jsonr.py@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/a3/76/286f29c987f8705a1be6dac43af5ea2be865bcb7c7688ded5cdbfbe178c5/jsonr-8.6.6.tar.gz",
    "platform": null,
    "description": "<h1 align=\"center\">\n  <a href=\"https://pypi.org/project/jsonr\"><img src=\"https://i.ibb.co/9hg4pF2/jsonr-modified.png\" alt=\"jsonr\" border=\"0\" width=\"145\"></a><a href=\"https://pypi.org/project/jsonr\"><img src=\"https://i.ibb.co/NK3W9Dk/jsonr-preview-modified.png\" alt=\"jsonr\" border=\"0\" width=\"290\">\n  </a>\n</h1>\n\n\n# [jsonr - PyPi](https://pypi.org/project/jsonr)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/jsonr-py/jsonr/blob/master/LICENSE)\n[![Python Versions](https://img.shields.io/badge/python-3.7%20|%203.8%20|%203.9%20|%203.10%20|%203.11%20|%203.12%20-blue)](https://www.python.org/downloads/)\n\n```\njsonr: (V8.6.6)\n\nHighly customizable JSON objects and dataframes, and your python toolkit all in one.\n```\n\n## Installing\n```shell\n# Linux/macOS\npython3 pip install -U jsonr\n\n# Windows\npy -3 -m pip install -U jsonr\n```\n\n# Architecture\n```python\n.mailmap\nAUTHORS\nLICENSE\nMANIFEST.in\nREADME.md\nSECURITY.md\nVERSION\npyproject.toml\nsetup.cfg\nsetup.py\njsonr/__init__.py\njsonr/__main__.py\njsonr/help.py\njsonr.egg-info/PKG-INFO\njsonr.egg-info/SOURCES.txt\njsonr.egg-info/dependency_links.txt\njsonr.egg-info/requires.txt\njsonr.egg-info/top_level.txt\njsonr/_core/__init__.py\njsonr/_core/_binary.py\njsonr/_core/_code.py\njsonr/_core/_concurrent.py\njsonr/_core/_crypto.py\njsonr/_core/_data.py\njsonr/_core/_dcompress.py\njsonr/_core/_debug.py\njsonr/_core/_devtools.py\njsonr/_core/_dtypes.py\njsonr/_core/_file.py\njsonr/_core/_formats.py\njsonr/_core/_functional.py\njsonr/_core/_guitk.py\njsonr/_core/_idata.py\njsonr/_core/_import.py\njsonr/_core/_international.py\njsonr/_core/_iprotocols.py\njsonr/_core/_language.py\njsonr/_core/_markup.py\njsonr/_core/_math.py\njsonr/_core/_mswindows.py\njsonr/_core/_mutimedia.py\njsonr/_core/_networking.py\njsonr/_core/_os.py\njsonr/_core/_packaging.py\njsonr/_core/_program.py\njsonr/_core/_runtime.py\njsonr/_core/_superseded.py\njsonr/_core/_text.py\njsonr/_core/_unix.py\njsonr/_typing/__init__.py\njsonr/_typing/jsonr_typing_flowa.py\njsonr/_typing/jsonr_typing_json.py\njsonr/_typing/jsonr_typing_pollinations.py\njsonr/_typing/jsonr_typing_string.py\njsonr/_utils/__init__.py\njsonr/_utils/_bond.py\njsonr/_utils/_convertions.py\njsonr/_utils/_infinity.py\njsonr/_utils/_insepct.py\njsonr/bases/__init__.py\njsonr/bases/new_base.py\njsonr/core/__init__.py\njsonr/core/dataframe.py\njsonr/core/new.py\njsonr/libs/__init__.py\njsonr/libs/flowa/__init__.py\njsonr/libs/flowa/_version.py\njsonr/libs/flowa/main/__init__.py\njsonr/libs/flowa/main/decisiontree.py\njsonr/libs/flowa/main/imagemodel.py\njsonr/libs/flowa/main/labelencoder.py\njsonr/libs/flowa/types/__init__.py\njsonr/libs/flowa/utils/__init__.py\njsonr/libs/pollinations/__init__.py\njsonr/libs/pollinations/abc/__init__.py\njsonr/libs/pollinations/abc/imageprotocol.py\njsonr/libs/pollinations/abc/textprotocol.py\njsonr/libs/pollinations/ai/__init__.py\njsonr/libs/pollinations/ext/__init__.py\njsonr/libs/pollinations/types/ImageModel.py\njsonr/libs/pollinations/types/ImageObject.py\njsonr/libs/pollinations/types/TextModel.py\njsonr/libs/pollinations/types/TextObject.py\njsonr/libs/pollinations/types/__init__.py\njsonr/typing/__init__.py\njsonr/utils/__init__.py\ntest/test_import.py\n```\n\n## JSON Objects\n```python\nimport jsonr\n\njson: jsonr.JSON = jsonr.New(auto=True, some_var='thanks for using jsonr!', other_var='im a random var!', lol='lol')\n```\n```javascript\n// >>> {'some_var': 'thanks for using jsonr!', 'other_var': 'im a random var!', 'lol': 'lol'}\n```\n```python\njson.test: int = 123\n\nprint(json['test'])\n```\n```javascript\n// >>> 123\n```\n```python\njson_copy: dict = json.copy()\n\nnew_json: jsonr.JSON = jsonr.New()\nnew_json.to(json_copy)\n\nprint(new_json)\n```\n```javascript\n// >>> {'some_var': 'thanks for using jsonr!', 'other_var': 'im a random var!', 'lol': 'lol', 'test': 123}\n```\n```python\njson.wipe()\n```\n```javascript\n// >>> {}\n```\nFor more JSON Object Examples view the [jsonr/examples](https://github.com/jsonr-py/jsonr/blob/master/examples)\n\n## DataFrame Objects\n```python\nframe = jsonr.Frame(columns=[\"1A TEST-A\", \"B\", \"C\"], rows=[[1, 2, 3], [4, 5, 6]])\n```\n```javascript\n// >>>      | 1A TEST-A | B | C\n// >>> -----------------------\n// >>> 0    |         1 | 2 | 3\n// >>> 1    |         4 | 5 | 6\n```\n```python\nprint(frame._1A_TEST_A)\n```\n```javascript\n// >>> [1, 4]\n```\n```python\nframe.add_row([7, 8, 9])\n```\n```javascript\n// >>>      | 1A TEST-A | B | C\n// >>> -----------------------\n// >>> 0    |         1 | 2 | 3\n// >>> 1    |         4 | 5 | 6\n// >>> 2    |         7 | 8 | 9\n```\n```python\nframe.add_column(\"D\", [10, 11, 12])\n```\n```javascript\n// >>>      | 1A TEST-A | B | C |  D\n// >>> ----------------------------\n// >>> 0    |         1 | 2 | 3 | 10\n// >>> 1    |         4 | 5 | 6 | 11\n// >>> 2    |         7 | 8 | 9 | 12\n```\n```python\nX: list = frame.drop(columns=['B', 'C']) # Creates a new dataframe to not alter the original frame.\n```\n```javascript\n// >>>      | 1A TEST-A |  D\n// >>> --------------------\n// >>> 0    |         1 | 10\n// >>> 1    |         4 | 11\n// >>> 2    |         7 | 12\n```\n```python\nprint(frame.describe())\n```\n```javascript\n// >>> {'1A TEST-A': {'count': 3, 'mean': 4.0, 'std': 2.449489742783178, 'min': 1, '25%': 1, '50%': 4, '75%': 7, 'max': 7}, 'B': {'count': 3, 'mean': 5.0, 'std': 2.449489742783178, 'min': 2, '25%': 2, '50%': 5, '75%': 8, 'max': 8}, 'C': {'count': 3, 'mean': 6.0, 'std': 2.449489742783178, 'min': 3, '25%': 3, '50%': 6, '75%': 9, 'max': 9}, 'D': {'count': 3, 'mean': 11.0, 'std': 0.816496580927726, 'min': 10, '25%': 10, '50%': 11, '75%': 12, 'max': 12}}\n```\n\nFor more DataFrame Object Examples view the [jsonr/examples](https://github.com/jsonr-py/jsonr/blob/master/examples)\n\n## Links\nGitHub = https://github.com/jsonr-py\nRepository = https://github.com/jsonr-py/jsonr\nPyPi = https://pypi.org/project/jsonr\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2023 jsonr  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "Highly customizable JSON objects and dataframes, and your python toolkit all in one.",
    "version": "8.6.6",
    "project_urls": {
        "GitHub": "https://github.com/jsonr-py",
        "Homepage": "https://github.com/jsonr-py/jsonr",
        "PyPi": "https://pypi.org/project/jsonr",
        "Repository": "https://github.com/jsonr-py/jsonr"
    },
    "split_keywords": [
        "jsonr",
        "json",
        "jsonr-py",
        "jsonr-python",
        "python"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8ce869993bab6b024cdf9923e96dc2b6f319d6d731fb022b8ae2947375872aea",
                "md5": "5383e20a89943d101d3c3d247c84e26f",
                "sha256": "f2497859970efdc2ebde4f2b7a8b5e49e6e307aa8eef5d83779021d73e14716f"
            },
            "downloads": -1,
            "filename": "jsonr-8.6.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5383e20a89943d101d3c3d247c84e26f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 56120,
            "upload_time": "2023-12-09T07:01:17",
            "upload_time_iso_8601": "2023-12-09T07:01:17.828652Z",
            "url": "https://files.pythonhosted.org/packages/8c/e8/69993bab6b024cdf9923e96dc2b6f319d6d731fb022b8ae2947375872aea/jsonr-8.6.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a376286f29c987f8705a1be6dac43af5ea2be865bcb7c7688ded5cdbfbe178c5",
                "md5": "6a661f75531e3989ced4e6899485832e",
                "sha256": "4f8f33726cc849677f628e9711b532b9a5e075edc9265baa329c6bff4d958ce8"
            },
            "downloads": -1,
            "filename": "jsonr-8.6.6.tar.gz",
            "has_sig": false,
            "md5_digest": "6a661f75531e3989ced4e6899485832e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 44868,
            "upload_time": "2023-12-09T07:01:20",
            "upload_time_iso_8601": "2023-12-09T07:01:20.652416Z",
            "url": "https://files.pythonhosted.org/packages/a3/76/286f29c987f8705a1be6dac43af5ea2be865bcb7c7688ded5cdbfbe178c5/jsonr-8.6.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-09 07:01:20",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "jsonr-py",
    "github_project": "jsonr",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "numpy",
            "specs": []
        },
        {
            "name": "requests",
            "specs": []
        },
        {
            "name": "pathlib",
            "specs": []
        },
        {
            "name": "pandas",
            "specs": []
        },
        {
            "name": "google-generativeai",
            "specs": []
        }
    ],
    "lcname": "jsonr"
}
        
Elapsed time: 0.38379s