Maelstrom
A model based database library for Apache Cassandra built on top of DataStax Python Driver. This library has tested support for Python 2.7.
Installation
Installing through pip is recommended:
$ pip install maelstrom-py
You must have setuptools installed prior to installation. To install the package manually please refer to our installation guide.
Get Started
Example usage of Maelstrom:
from uuid import uuid4
import maelstrom
from maelstrom.base import Base
from maelstrom.lookup import import LookUp
#ip1 and ip2 are IP address of some, but not necessarily all, nodes of your Cassandra cluster.
maelstrom.start([ip1, ip2])
class User(Base):
__tablename__ = "users"
defaults = {
'id' = uuid4(),
'name' = '',
'email' = '',
}
lookups = ["email"]
def __init__(self, *args, **kwargs):
self.update_data(**self.defaults)
Base.__init__(self, *arks, **kwargs)
#constructs table in the specified keyspace
User.build()
LookUp.build()
new_user = User(name = "Joe", email="example@email.com")
new_user.commit()
get_user = Account.get_by_lookup("example@email.com")
maelstrom.stop()
Documentation
TODO
License
Copyright 2014 Matt Morse, Joe Peacock and contributors
Maelstrom is licensed under the MIT License.
Metadata
Release files for maelstrom-py 0.1.32
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| maelstrom-py-0.1.32.tar.gz | 9.1 kB | Without provenance | Details for maelstrom-py-0.1.32.tar.gz |
Release files / maelstrom-py-0.1.32.tar.gz
| Download URL | maelstrom-py-0.1.32.tar.gz |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e82bb4d9a2474876e4edbe3ce0f77e15b0bb792162c02a5d6aeb104dd561a7b9
|
|
BLAKE2b-256 checksum How to use checksums |
e99da1edf05d9b44949db4ce59533902ff5fa4e7e547d5426fac1da28e131aa7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for maelstrom-py 0.1.32
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.