stupiddb


Namestupiddb JSON
Version 1.0 PyPI version JSON
download
home_pagehttps://github.com/gugu256
SummaryThe stupidest database system ever made
upload_time2023-09-08 12:32:26
maintainer
docs_urlNone
authorgugu256
requires_python
license
keywords database key value key-value kv esoteric
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # StupidDB

StupidDB is probably the stupidest database system ever made.

It's a simple KV Store, but every key is actually a directory, and inside this directory is a file containing the value of the key.

But it's still actually very easy to use!

## Here's the documentation :

You can install it using pip : `pip install stupiddb`

```python
import stupiddb

db = stupiddb.StupidDatabase("my_db")

db.set("cow", "mammal") # Set a KV pair

db.set_dict({"snake": "reptile", "mouse": "mammal", "crocodile": "reptile", "cat": "mammal"}) # Set multiple KV pairs using a dictionary syntax
 
print(f"The cow is a {db.get('cow')}") # Get a key's value

db.delete("cow") # Remove a key out of the database

database = db.get_as_dict() # Get the whole database as a dictionary

db.reset() # Remove all keys out of the database

```

And that's it!

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/gugu256",
    "name": "stupiddb",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "database key value key-value KV esoteric",
    "author": "gugu256",
    "author_email": "gugu256@mail.com",
    "download_url": "https://files.pythonhosted.org/packages/8b/13/99342fe57a06baf0d5df1a3faee0b7756706b563558980f6955c6d21f306/stupiddb-1.0.tar.gz",
    "platform": null,
    "description": "# StupidDB\r\n\r\nStupidDB is probably the stupidest database system ever made.\r\n\r\nIt's a simple KV Store, but every key is actually a directory, and inside this directory is a file containing the value of the key.\r\n\r\nBut it's still actually very easy to use!\r\n\r\n## Here's the documentation :\r\n\r\nYou can install it using pip : `pip install stupiddb`\r\n\r\n```python\r\nimport stupiddb\r\n\r\ndb = stupiddb.StupidDatabase(\"my_db\")\r\n\r\ndb.set(\"cow\", \"mammal\") # Set a KV pair\r\n\r\ndb.set_dict({\"snake\": \"reptile\", \"mouse\": \"mammal\", \"crocodile\": \"reptile\", \"cat\": \"mammal\"}) # Set multiple KV pairs using a dictionary syntax\r\n \r\nprint(f\"The cow is a {db.get('cow')}\") # Get a key's value\r\n\r\ndb.delete(\"cow\") # Remove a key out of the database\r\n\r\ndatabase = db.get_as_dict() # Get the whole database as a dictionary\r\n\r\ndb.reset() # Remove all keys out of the database\r\n\r\n```\r\n\r\nAnd that's it!\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "The stupidest database system ever made",
    "version": "1.0",
    "project_urls": {
        "GitHub Repository": "https://github.com/gugu256/StupidDB",
        "Homepage": "https://github.com/gugu256"
    },
    "split_keywords": [
        "database",
        "key",
        "value",
        "key-value",
        "kv",
        "esoteric"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fdadccd7efd2862fd2390b857b9d57a3b401b8ff82986481fe8ec74a4ebbdda9",
                "md5": "72f62d234c3c3fffb35ebba35d0f2753",
                "sha256": "0ce395076058edcc474ecebb547fe911edb9024a17fe6b1a5b1c9b82724d21f6"
            },
            "downloads": -1,
            "filename": "stupiddb-1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "72f62d234c3c3fffb35ebba35d0f2753",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 2624,
            "upload_time": "2023-09-08T12:32:24",
            "upload_time_iso_8601": "2023-09-08T12:32:24.458756Z",
            "url": "https://files.pythonhosted.org/packages/fd/ad/ccd7efd2862fd2390b857b9d57a3b401b8ff82986481fe8ec74a4ebbdda9/stupiddb-1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8b1399342fe57a06baf0d5df1a3faee0b7756706b563558980f6955c6d21f306",
                "md5": "26d9c9f531e11d5902c3d4ae94345473",
                "sha256": "4fc9d5ca83b4d13903a3a899d0247531431eecba8ad788723b82c523d626e770"
            },
            "downloads": -1,
            "filename": "stupiddb-1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "26d9c9f531e11d5902c3d4ae94345473",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2468,
            "upload_time": "2023-09-08T12:32:26",
            "upload_time_iso_8601": "2023-09-08T12:32:26.321316Z",
            "url": "https://files.pythonhosted.org/packages/8b/13/99342fe57a06baf0d5df1a3faee0b7756706b563558980f6955c6d21f306/stupiddb-1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-08 12:32:26",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "gugu256",
    "github_project": "StupidDB",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "stupiddb"
}
        
Elapsed time: 0.29470s