Skip to main content

A lightweight model maker for quickbase

Project description

quickbase-model-maker

model_maker_logo

Installation

pip install quickbase-model-maker

Usage

Initializing

The sample code below will initialize your models for use in your application. Registering tables costs 1 API call per table. You do not have to register your tables upon every script run. It is recommended that you register your tables and sync only once (or when you wish to update your models) via the python terminal.

# import model maker
from quickbase_model_maker.model_maker import QuickbaseModelMaker

# create model maker with realm and auth info
qmm = QuickbaseModelMaker(realm='realm', auth='AUTH-TOKEN')

# register tables you wish to create models from
qmm.register_tables([
    ('bqs5asdf', 'bqs5aser'), # ('app_id', 'table_id') tuples
    ('bqs5abzc', 'brzaners'),
    ('bqs5abzc', 'brzanvac'),
    ('bqs5abzc', 'bqs5wers'),
])

# call sync method to create models
qmm.sync()

In code

Once registered and created, models can be used in your application.
The following code uses a fictional "Order" model to demonstrate how one can access the ORDER_TYPE field. One can also access useful metadata through methods like .table_id() and .app_id().

from references.orders import Order
print(Order.ORDER_TYPE)
print(Order.table_id())

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

quickbase_model_maker-0.1.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quickbase_model_maker-0.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file quickbase_model_maker-0.1.0.tar.gz.

File metadata

  • Download URL: quickbase_model_maker-0.1.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for quickbase_model_maker-0.1.0.tar.gz
Algorithm Hash digest
SHA256 35c789f67e4a0de14e8722be1c8938cc20a2b5770dd5155935c1af4f79981d4d
MD5 68d8f13671238a89537ac28398e41a41
BLAKE2b-256 5ca158e9f121467620e0bcf06175eec4d863635ef0515a5dd09fb3c83539f49d

See more details on using hashes here.

File details

Details for the file quickbase_model_maker-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for quickbase_model_maker-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 66493482048547e9e9ca113dd9b6668213e4668a164ddef4f0b304f0f5f14d11
MD5 a9b957aa95fd4a48d7ec722e729aa8f9
BLAKE2b-256 f12cce609e634c4bc8790585d943743c0cde5be8952bbe5b0195a4e115480f8d

See more details on using hashes here.

Supported by

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