Skip to main content

Данная библиотека содержить SqlAlchemy ORM для системы Univer

Project description

Python Univer

Содержит маппинг данных из Univer для SqlAlchemy

Установка

$ pip install python_univer

Конфигурация

from python_univer.config import Config, DRIVER
from python_univer.orm import get_session


config = Config(host='адрес', user='пользователь', password='пароль', db='имя базы данных', driver=DRIVER.FREETDS)
Session = get_session(config)

Использование

from python_univer.models import Student


session = Session()

students = session.query(Student).filter(Student.course == 2, Student.status == 1)

for student in students:
    print(student)

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-univer-1.0.3.tar.gz (14.3 kB view details)

Uploaded Source

File details

Details for the file python-univer-1.0.3.tar.gz.

File metadata

  • Download URL: python-univer-1.0.3.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

File hashes

Hashes for python-univer-1.0.3.tar.gz
Algorithm Hash digest
SHA256 2e573df76b941d8958572e2b98e438bb5b350c3f6cd27164623ff8176d8574f0
MD5 d939b8b14d9f252c57d722be706aef1b
BLAKE2b-256 4d6a306436360f3aa9092248ecf593f81a7ec604312875229bf9ce4f4a90a602

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page