Jsonly
누구나 데이터베이스 활용을
누구나 데이터베이스를 사용할 수 있어요!
여러가지 데이터베이스를 쉽게 활용할 수 있어요!
지원 파일 : .json / .db
자세한 사용법은 여기를 참조해주세요!
Installation
$ pip install jsonly
Example
DATA
# data.json (default)
{
"기본": {
"사과": "애플"
},
"하나": "일",
"둘": "이"
}
GET
데이터를 불러올 때 사용하는 메소드
# get.py
from jsonly.client import UseJsonly
jsonly = UseJsonly(path="data.json")
print(jsonly.get(path="기본/사과"))
# result
>>> 애플
SET
데이터를 덮어씌울 때 사용하는 메소드
# set.py
from jsonly.client import UseJsonly
jsonly = UseJsonly(path="data.json")
data = {"기본중에" : "기본"}
print(jsonly.set(data=data))
# result
>>> True
# data.json (modified from default)
{
"기본중에": "기본"
}
UPDATE
데이터를 루트 경로에 추가할 때 사용하는 메소드
# update.py
from jsonly.client import UseJsonly
jsonly = UseJsonly(path="data.json")
data = {"새로운" : "데이터"}
print(jsonly.update(data=data))
# result
>>> True
# data.json (modified from default)
{
"기본": {
"사과": "애플"
},
"하나": "일",
"둘": "이",
"새로운": "데이터"
}
INSERT
데이터를 특정 경로에 추가할 때 사용하는 메소드
# insert.py
from jsonly.client import UseJsonly
jsonly = UseJsonly(path="data.json")
data = {"데이터" : "삽입"}
print(jsonly.insert(data=data, path='기본'))
# result
>>> True
# data.json (modified from default)
{
"기본": {
"데이터": "삽입"
},
"하나": "일",
"둘": "이",
}
Metadata
Release files for jsonly 2.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jsonly-2.0.2.tar.gz | 5.8 kB | Without provenance | Details for jsonly-2.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jsonly-2.0.2-py3-none-any.whl | Python 3 | none | any | Details for jsonly-2.0.2-py3-none-any.whl |
Total release size: 13.5 kB
Release files / jsonly-2.0.2.tar.gz
| Download URL | jsonly-2.0.2.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b511dcbc27ac0bf37ce4653a80997a92039b1feb46577c45aeadabb505451507
|
|
BLAKE2b-256 checksum How to use checksums |
3cba1ca4dda8c66d6cf734504b525a1ee648b712d968b931108a718f8f6030e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Release files / jsonly-2.0.2-py3-none-any.whl
| Download URL | jsonly-2.0.2-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8d24bc7b74ce37b313bdfe4f1430ec7ad42e56d61024520c2aecdf5862118926
|
|
BLAKE2b-256 checksum How to use checksums |
409d0d8f692af29bf62e3b575abba445cb9f79d59835ead6f0f5fcc003edcb27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Security for jsonly 2.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.