معرفی شرکت ها


PySimpleDB-0.2.1


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Simple json database
ویژگی مقدار
سیستم عامل OS Independent
نام فایل PySimpleDB-0.2.1
نام PySimpleDB
نسخه کتابخانه 0.2.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Super_Zombi
ایمیل نویسنده super.zombi.yt@gmail.com
آدرس صفحه اصلی https://github.com/SuperZombi/Py-Simple-DB
آدرس اینترنتی https://pypi.org/project/PySimpleDB/
مجوز -
# Py-Simple-DB ## <a href="https://pypi.org/project/PySimpleDB/">Install</a>: ``` pip install PySimpleDB ``` ## Load: ```python from PySimpleDB import DataBase mydb = DataBase("simple.bd") mydb_unique = DataBase("unique.bd", unique="user") ``` You can use a database in which the unique key will be a number, or specify your own name for the unique key, which will need to be transmitted ## Add row: This command automatically saves the state of the database. ```python mydb.add(name="Hello", last_name="world", gender="male") # any values mydb_unique.add(user="User1", name="Hello world", gender="male") # any values # ^ unique key ``` Make sure you are passing in a unique key for the appropriate database. <br> As in this example, the unique key is the "user" argument specified during initialization. ## Find: Returns the id of the first matched element, or an array of ids. ```python id_first = mydb.find(name="Hello") # 0 id_array = mydb.find_all(gender="male") # [0...] ``` ```python id_first_unique = mydb_unique.find(gender="male") # "User1" id_array_unique = mydb_unique.find_all(gender="male") # ["User1"...] ``` ## Get row: Returns value by id. ```python mydb.get(id_first) # {"name": "Hello", "last_name": "world", "gender": "male"} mydb_unique.get(id_first_unique) # {"name": "Hello world", "gender": "male"} ``` ## Delete row: This command automatically saves the state of the database. ```python mydb.delete(id_first) mydb_unique.delete(id_first_unique) ``` ## Save: ```python mydb.save() ``` ## Get All Data: Allows you to get the whole database. ```python mydb.get_all() ``` or ```python mydb.data ``` <br> ## You can also see usage examples <a href="examples/">here</a>


زبان مورد نیاز

مقدار نام
>=3.6 Python


نحوه نصب


نصب پکیج whl PySimpleDB-0.2.1:

    pip install PySimpleDB-0.2.1.whl


نصب پکیج tar.gz PySimpleDB-0.2.1:

    pip install PySimpleDB-0.2.1.tar.gz