Skip to main content

Simple database for Python user

Project description

FunDB

'FunDB for local dict structured database for python

  • Easy to use
  • Offline
  • python dictnary format

INSTALLATION:

$ python3 -m pip install fundb

IMPORT AND INTI:

>>> from fundb import fdb
>>> db = fdb('nameOfDb',  'secret',  rotate = 8000)

CREATE DB:

  • It over write data
  • (type) dict only
>>> Data = {'name': 'cat', 'age': 2}
>>> db.write(Data)

READ DATA:

  • (type) dict only
>>> db.read()
{'name': 'cat', 'age': 2}

NSERT PARRENT KEY:

>>> db.insert('key1', ['value1', 'value2'])
{'name': 'cat', 'age': 2, 'key1': ['value1', 'value2']}

REMOVE PARRENT KEY:

>>> db.remove('key1')
{'name': 'cat', 'age': 2}

CHECK PARRENT KEY:

>>> db.iskey('age')
True

GET VALUE FROM PARRENT KEY:

>>> db.getval('age')
2

SEARCH VALUE:

>>> tmp = db.search('ca')
>>> list[tmp]
[{'name': 'cat'}]

DB INFO:

>>> db.db_info()
{'Name': 'nameOfDb.dbf', 'Created': 'Fri Mar 12 07:52:32 2021', 'Modifyed': 'Fri Mar 12 07:52:32 2021', 'Size': 120, 'Mode': 33152, 'UId': 1000, 'GId': 1000}

FREE READ AND WRITE:

  • Insert Any format
>>> Data2 = 'String type'
>>> db.free_write(Data2)
>>> db.free_read()
'String type'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fundb-0.0.6.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

fundb-0.0.6-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file fundb-0.0.6.tar.gz.

File metadata

  • Download URL: fundb-0.0.6.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.4

File hashes

Hashes for fundb-0.0.6.tar.gz
Algorithm Hash digest
SHA256 68a9b051b81b6e7484e1435fb1c469c83141938ad6651894f92a14eb12b85ecc
MD5 ae7261757f68a92a2b7323ba4bc2bd0d
BLAKE2b-256 ee5e776a3274b77c58ffd7edcadd8778843913e4477c66809a05e2ab6b265cd2

See more details on using hashes here.

Provenance

File details

Details for the file fundb-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: fundb-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.4

File hashes

Hashes for fundb-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 fb436520cde7a48225738a83b7872cc9c995869b731510df5ea14cf12881c6cb
MD5 dfedf45bc89dc50692a5430e9cd856c2
BLAKE2b-256 80d2c0bd55d501bbd687104bea16b861b01dfe11f2916f3cead247e940fa6704

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page