Skip to main content

Tentacles is a python ORM. The main idea is to manipulate stored datas as you do for python data structures

python native:

>>> class SuperHero(object):
>>>             def __init__(self, name, gender, power):
>>>                     self.name   = name
>>>                     self.gender = gender
>>>                     self.power  = power
>>>
>>> hero1 = SuperHero('superman', 'male', 'flight')
>>> print "%s can %s" % (hero1.name, hero1.power)

… vs tentacles …:

>>> from tentacles        import Object
>>> from tentacles.fields import *
>>> class SuperHero(Object):
>>>     name   = String()
>>>     gender = String()
>>>     power  = String()
>>>
>>> hero1 = SuperHero(name='superman', gender='male', power='flight')
>>> print "%s can %s" % (hero1.name, hero1.power)

python native:

>>> heros   = [hero1, SuperHero(name='wonder woman', gender='female', power='enhanced vision')]
>>> females = filter(lambda e: e.gender = 'female', heros)
>>> for e in females:
>>>     print "superheroine: %s" % e.name

… vs tentacles …:

>>> hero1.save(); SuperHero(name='wonder woman', gender='female', power='enhanced vision').save()
>>> females = filter(lambda e: e.gender = 'female', heros)
>>> for e in females:
>>>     print "superheroine: %s" % e.name

Tentacles is pretty yound and incomplete, and still in alpha stage. It currently support only sqlite3 backend, while more are scheduled at mid-term (mysql, postgresql, but also no-sql storages, like openldap, mongodb, …)

Metadata

Release files for tentacles 0.1.1

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

Source distribution (sdist)

Source distribution for tentacles 0.1.1
File Size Uploaded Provenance
tentacles-0.1.1.tar.gz 42.4 kB Without provenance Details

Release files / tentacles-0.1.1.tar.gz

Download URL tentacles-0.1.1.tar.gz
Size 42.4 kB
Tags Source
SHA-256 checksum
How to use checksums
90849b07ae6eb53b485ae805f6f86a71c0d098c9cd3687b00e943928b1858d6e
BLAKE2b-256 checksum
How to use checksums
c604047742b2527651b80a4775c2e3bad200b08b4d3b9adb965a699594510432
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for tentacles 0.1.1

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file No provenance

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