Skip to main content

Electrus Database

Electrus Logo

Electrus is a lightweight asynchronous & synchronous database module designed for Python, providing essential functionalities for data storage and retrieval.

Table of Contents

Overview

Electrus offers functionalities to manage collections and perform various operations such as insertion, updates, deletion, and data querying.

Installation

To install Electrus, use the following pip command:

$ pip install electrus

Getting Started

Asynchronous

import electrus.asynchronous as electrus

client = electrus.Electrus()
database = client['mydb'] # enter you desire database
collection = database['mycollection']

Synchronous

import electrus.synchronous as electrus

client = electrus.Electrus()
database = client['mydb'] # enter you desire database
collection = database['mycollection']

Examples

Asynchronous

Inserting data operation

# save this as main.py

import asyncio

import electrus as electrus
from electrus.exception import ElectrusException

client = electrus.Electrus()
database = client['mydb']
collection = database['mycollection']

async def handlecollectionOperations():
    query = await collection.insertMany(data_list = sample_users, overwrite = False)
    print(query.acknowledged)

    query = await collection.find().select("*").execute()
    if query.acknowledged:
        print(json.dumps(query.raw_result, indent=2))

    query = await collection.update(
        filter = {"age": {"$gt": 30}}, multi = True,
        update_data = {"$set": {"salary": 30000}}
    )

    print((await collection.find().select("*").execute()).raw_result)

    query = await collection.delete().where(id = 1).execute()
    if query.acknowledged:
        print((await collection.find().select("*").execute()).raw_result)

if __name__ == "__main__":
    import asyncio
    asyncio.run(handlecollectionOperations())

run the script

$ python main.py

Synchronous

Inserting data operation

# save this as main.py

import electrus.synchronous as electrus
from electrus.exception import ElectrusException

client = electrus.Electrus()
database = client['mydb']
collection = database['mycollection']

data = {
  "id": "auto_inc",
  "name": "Embrake | Electrus",
  "email": ["embrakeproject@gmail.com", "control@vvfin.in"],
  "role": "user"
}

try:
  query = collection.insert_one(data)
  if query:
    print("Data inserted successfully!")
except ElectrusException as e:
  print("Something went wrong {}".format(e))

run the script

$ python main.py

Documantation

The complete documantation available at http://electrus.vvfin.in.

Support

For any help and support feel free to contact us at embrakeproject@gmail.com or control@vvfin.in

🧰 Feature Roadmap

Feature Status
✅ Atomic Write Engine Complete
✅ Smart Insert Logic Complete
✅ Modular I/O Layer Complete
🔄 Transaction Support In Progress
🔄 Advanced Query Ops In Progress
🧪 Middleware Engine In Progress

Have ideas? Submit a GitHub Issue


❤️ Sponsor Electrus

Great open-source needs great community support.

If Electrus saves you time, sanity, or money — consider sponsoring:

Sponsor on GitHub

Every donation goes toward feature development, maintenance, and coffee ☕.


🔓 License

Electrus is open-source under the BSD License — flexible, permissive, and production-ready.


🎨 Final Thoughts

Electrus was crafted for those who care about code elegance, data safety, and developer happiness.

⚡ Electrus — Build fearlessly. Code beautifully.

Release files for axiomelectrus 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for axiomelectrus 1.1.2
File Size Uploaded
axiomelectrus-1.1.2.tar.gz 71.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for axiomelectrus 1.1.2
File Interpreter ABI Platform
axiomelectrus-1.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 160.9 kB

Release files / axiomelectrus-1.1.2.tar.gz

Download URL axiomelectrus-1.1.2.tar.gz
Size 71.8 kB
Tags Source
SHA-256 checksum
How to use checksums
895128f65d64c38d992aa3a233a0f53e0241368da2bc312641799c5ca558285b
BLAKE2b-256 checksum
How to use checksums
63ce3cb17d861ee07d0dba1ef993ce2797acdb3501c2937c6c980b5f4f7ebed3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / axiomelectrus-1.1.2-py3-none-any.whl

Download URL axiomelectrus-1.1.2-py3-none-any.whl
Size 89.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
88b9dc3099ab517f3fb0b6f4c315e1cede2ed04616c29a6aa33e3ac1387449cb
BLAKE2b-256 checksum
How to use checksums
521640da1d6958e5692576df0813e296c0917667a12076c0c74ae1e64ef63276
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

1.1.2 This release

2 release files

1.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page