primitiveDB


NameprimitiveDB JSON
Version 0.0.2 PyPI version JSON
download
home_page
SummaryAn easy-to-use databasing library
upload_time2023-01-03 23:16:41
maintainer
docs_urlNone
authorFahim Ferdous (Capt.Pyrite)
requires_python
license
keywords python flask pandas database
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
<h1 align="center">Primitive-Database (primitveDB)</h1>

<div align="center">

  ![logo](https://user-images.githubusercontent.com/79488582/183230798-31b73d18-3154-4928-b746-4e89ac9f486d.jpg)
  
</div>


# About PrimitiveDB
Primitive-Database is a lightweight databasing library written in Python3. It uses CSV(Comma Separated Values) file(s) to store data, making it easy to perform simple and minimalistic tasks with great and stable performance.


<br></br>

# Using PrimitiveDB

<h2>Server</h2>

<h3>Creating a simple vertical database</h3>

```python
from primitiveDB.server import Server

Server.init.db(<CSV FILE>)
Server.init.id(<SPEICAL ID FOR THE SERVER>)

Server.init.columns(["Name",       #Title for column 1
                     "Age",        #Title for column 2
                     "Address"])   #Title for column 3


Server.init.auth(<AUTHENTICATION KEY>)

#                  IP             PORT
Server.init.uri("0.0.0.0"    ,    8080) #Server IP is `http://localhost:8080` or `http://127.0.0.1:8080`

Server.run()
```

<br></br>

<h2>Client</h2>
<h3>Connecting to the database</h3>

```python
from primitiveDB.client import Client

DB = client.connect(<IP>)
DB.set_auth(<AUTHENTICATION KEY>)
```

<h3>Fetching data from the database</h3>

```python
from primitiveDB.client import Client

DB = client.connect(<IP>)
DB.set_auth(<AUTHENTICATION KEY>)


DB_data = DB.fetch() #returns a pandas.datafraem
print(DB_data)
```


<h3>Inserting data into the database</h3>

```python
from primitiveDB.client import Client

DB = client.connect(<IP>)
DB.set_auth(<AUTHENTICATION KEY>)


DB_data = DB.fetch()


DB_data["Name"] = ["Jack",           # Adding `Jack` to first row into Names
                   "James"]           # Adding `Jill` to second row into Names

DB_data["Age"] = [10,                 # Adding the age for `Jack` 
                  07]                 # Adding the age for  `James`
                  
DB_data["Adress"] = ["123 NAME ST",   # Adding the adress for `Jack`
                     "123 MAIN ST"]   # Adding the adress for `James`

DB.insert(DB_data)
```


Github: https://github.com/FahimFerdous1/primitiveDB 


            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "primitiveDB",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "python,flask,pandas,database",
    "author": "Fahim Ferdous (Capt.Pyrite)",
    "author_email": "<liveviewer360@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/d7/d9/935149dc64ea0fad538ab6d1866c0bbb509b7ac61ceea03a6f8ba9b4c1cc/primitiveDB-0.0.2.tar.gz",
    "platform": null,
    "description": "\n<h1 align=\"center\">Primitive-Database (primitveDB)</h1>\n\n<div align=\"center\">\n\n  ![logo](https://user-images.githubusercontent.com/79488582/183230798-31b73d18-3154-4928-b746-4e89ac9f486d.jpg)\n  \n</div>\n\n\n# About PrimitiveDB\nPrimitive-Database is a lightweight databasing library written in Python3. It uses CSV(Comma Separated Values) file(s) to store data, making it easy to perform simple and minimalistic tasks with great and stable performance.\n\n\n<br></br>\n\n# Using PrimitiveDB\n\n<h2>Server</h2>\n\n<h3>Creating a simple vertical database</h3>\n\n```python\nfrom primitiveDB.server import Server\n\nServer.init.db(<CSV FILE>)\nServer.init.id(<SPEICAL ID FOR THE SERVER>)\n\nServer.init.columns([\"Name\",       #Title for column 1\n                     \"Age\",        #Title for column 2\n                     \"Address\"])   #Title for column 3\n\n\nServer.init.auth(<AUTHENTICATION KEY>)\n\n#                  IP             PORT\nServer.init.uri(\"0.0.0.0\"    ,    8080) #Server IP is `http://localhost:8080` or `http://127.0.0.1:8080`\n\nServer.run()\n```\n\n<br></br>\n\n<h2>Client</h2>\n<h3>Connecting to the database</h3>\n\n```python\nfrom primitiveDB.client import Client\n\nDB = client.connect(<IP>)\nDB.set_auth(<AUTHENTICATION KEY>)\n```\n\n<h3>Fetching data from the database</h3>\n\n```python\nfrom primitiveDB.client import Client\n\nDB = client.connect(<IP>)\nDB.set_auth(<AUTHENTICATION KEY>)\n\n\nDB_data = DB.fetch() #returns a pandas.datafraem\nprint(DB_data)\n```\n\n\n<h3>Inserting data into the database</h3>\n\n```python\nfrom primitiveDB.client import Client\n\nDB = client.connect(<IP>)\nDB.set_auth(<AUTHENTICATION KEY>)\n\n\nDB_data = DB.fetch()\n\n\nDB_data[\"Name\"] = [\"Jack\",           # Adding `Jack` to first row into Names\n                   \"James\"]           # Adding `Jill` to second row into Names\n\nDB_data[\"Age\"] = [10,                 # Adding the age for `Jack` \n                  07]                 # Adding the age for  `James`\n                  \nDB_data[\"Adress\"] = [\"123 NAME ST\",   # Adding the adress for `Jack`\n                     \"123 MAIN ST\"]   # Adding the adress for `James`\n\nDB.insert(DB_data)\n```\n\n\nGithub: https://github.com/FahimFerdous1/primitiveDB \n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "An easy-to-use databasing library",
    "version": "0.0.2",
    "split_keywords": [
        "python",
        "flask",
        "pandas",
        "database"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a80db60b543aeb2a81cedf86ee2e9744daa577bb722d14b45084fcf0b7fd711d",
                "md5": "49af7b806864e4c24775fb433ba0f613",
                "sha256": "213be870af45c796f84bfe642795f730047e442733d443de9acbd587bd363549"
            },
            "downloads": -1,
            "filename": "primitiveDB-0.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "49af7b806864e4c24775fb433ba0f613",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 12471,
            "upload_time": "2023-01-03T23:16:38",
            "upload_time_iso_8601": "2023-01-03T23:16:38.634537Z",
            "url": "https://files.pythonhosted.org/packages/a8/0d/b60b543aeb2a81cedf86ee2e9744daa577bb722d14b45084fcf0b7fd711d/primitiveDB-0.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d7d9935149dc64ea0fad538ab6d1866c0bbb509b7ac61ceea03a6f8ba9b4c1cc",
                "md5": "c217f3065d326206beb4645a96da72af",
                "sha256": "b5bd5fb0d2d89ca3be372a9a879bb54a282bdcb69ece004c8b38952bf9f43d33"
            },
            "downloads": -1,
            "filename": "primitiveDB-0.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "c217f3065d326206beb4645a96da72af",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 11206,
            "upload_time": "2023-01-03T23:16:41",
            "upload_time_iso_8601": "2023-01-03T23:16:41.217037Z",
            "url": "https://files.pythonhosted.org/packages/d7/d9/935149dc64ea0fad538ab6d1866c0bbb509b7ac61ceea03a6f8ba9b4c1cc/primitiveDB-0.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-03 23:16:41",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "primitivedb"
}
        
Elapsed time: 0.03436s