No project description provided
Project description
SQLetic
SQLetic is an SQL database engine in pure python iterating over list acting as table indexed by there name in a dictionary.
statement = """
select concat('In ', cities.name, ' city, the spoken language is ', corresponding_countries.language, ' where ', citizens.name, ' live.')
from cities
inner join countries as corresponding_countries
on (cities.country=corresponding_countries.name)
inner join citizens
on (cities.name=citizens.city)
"""
database = {"cities":({"name": "Prague", "country": "Czechia"},
{"name": "Cesky Krumlov", "country": "Czechia"},
{"name":"Paris", "country": "France"}),
"countries":({"name": "Czechia", "language": "Czech"},
{"name": "France", "language": "French"}),
"citizens":({"name": "Pablo Picasso", "city": "Paris"},
{"name": "Alfons Mucha", "city": "Prague"},
{"name": "Egon Schiele", "city": "Cesky Krumlov"})}
engine = Engine(database)
engine.execute(statement)
for entry in engine:
print(entry)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sqletic-0.1.5.tar.gz
(6.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
sqletic-0.1.5-py3-none-any.whl
(11.2 kB
view details)
File details
Details for the file sqletic-0.1.5.tar.gz.
File metadata
- Download URL: sqletic-0.1.5.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.10.6-arch1-1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e46d979a7516f4c7e2ba594ca82006a2c10f73f05995164c82b4c2905d653cff
|
|
| MD5 |
95e89d44fbbc3f91da2bde8722bc98e4
|
|
| BLAKE2b-256 |
8924757278ab03e48679552c2917a9a4155d9621fe1f82f64f58f14554d1b923
|
File details
Details for the file sqletic-0.1.5-py3-none-any.whl.
File metadata
- Download URL: sqletic-0.1.5-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.10.6-arch1-1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40d4868a9a7498a67f48a5a1cd9ed63065a2d14469cadec8ea4753db3f3ea1ac
|
|
| MD5 |
b57e371779d992a9a2b294b6d991e148
|
|
| BLAKE2b-256 |
eb6a02711e3fecbe581459639b5eafb047b3c2c517e6e3fb0fad05dcb5e3ed3d
|