# Oba
![PyPI](https://img.shields.io/pypi/v/oba.svg)
![GitHub](https://img.shields.io/github/license/Jyonn/Oba.svg)
## Usage
- Convert iterative object to attribute-accessible object
## Install
`pip install oba`
## Description
```python
from oba import Obj
o = Obj(dict(a=[1, 2, 3], b=[4, dict(x=1)], c=dict(l='hello')))
print(o.a[2]) # => 3
print(o.c.l) # => hello
o.b[1].x = 4
print(Obj.raw(o.b[1])) # => {'x': 4}
print(bool(o.xxx)) # => False, accessible as NoneObj()
```
Raw data
{
"_id": null,
"home_page": "https://github.com/Jyonn/Oba",
"name": "oba",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "dict,object",
"author": "Jyonn Liu",
"author_email": "i@6-79.cn",
"download_url": "https://files.pythonhosted.org/packages/ed/63/f12b7c452417311f29736214a05c5ad973b286539582ef68ff1ac1000731/oba-0.0.7.tar.gz",
"platform": "any",
"description": "# Oba\n\n![PyPI](https://img.shields.io/pypi/v/oba.svg)\n![GitHub](https://img.shields.io/github/license/Jyonn/Oba.svg)\n\n## Usage\n\n- Convert iterative object to attribute-accessible object\n\n## Install \n\n`pip install oba`\n\n## Description\n\n```python\nfrom oba import Obj\n\no = Obj(dict(a=[1, 2, 3], b=[4, dict(x=1)], c=dict(l='hello')))\n\nprint(o.a[2]) # => 3\nprint(o.c.l) # => hello\n\no.b[1].x = 4\nprint(Obj.raw(o.b[1])) # => {'x': 4}\n\nprint(bool(o.xxx)) # => False, accessible as NoneObj()\n```\n\n\n",
"bugtrack_url": null,
"license": "MIT Licence",
"summary": "make iter object easy to access (item to attr)",
"version": "0.0.7",
"project_urls": {
"Homepage": "https://github.com/Jyonn/Oba"
},
"split_keywords": [
"dict",
"object"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ed63f12b7c452417311f29736214a05c5ad973b286539582ef68ff1ac1000731",
"md5": "520aaf1a95274d3cb3b2ba74eb5acb9a",
"sha256": "6956ca66cb7921664959832f4b8d6f10bd86a4131a84e39d06e9dfe1489cbc6f"
},
"downloads": -1,
"filename": "oba-0.0.7.tar.gz",
"has_sig": false,
"md5_digest": "520aaf1a95274d3cb3b2ba74eb5acb9a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 2966,
"upload_time": "2023-05-11T10:19:06",
"upload_time_iso_8601": "2023-05-11T10:19:06.551024Z",
"url": "https://files.pythonhosted.org/packages/ed/63/f12b7c452417311f29736214a05c5ad973b286539582ef68ff1ac1000731/oba-0.0.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-05-11 10:19:06",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Jyonn",
"github_project": "Oba",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "oba"
}