Saravanan666/pypi-org huggingface dataset:
Package: orka-vector-api
OrKa-Vector-APIThe OrKa Vector REST APIInstallRequires a postgres database with postgis extension installed.pipinstallorka-vector-apiDevelopmentRun Dev ServerFLASK_APP=orka_vector_apiFLASK_ENV=developmentflaskrunConfigsconfig.pyAconfig.pymust be added to theinstance folderthat allows following additional configs:PG_USER- username of the user that has access to the vector layersPG_PASSWORD= password of the userPG_HOST= database hostPG_PORT= database portPG_DATABASE= database nameORKA_DB_USER= application database usernameORKA_DB_PASSWORD= application database passwordORKA_DB_HOST= application database hostORKA_DB_PORT= application database portORKA_DB_DATABASE= application database nameORKA_DB_SCHEMA= application database schemaORKA_DB_MIN_CONNECTION= application database min connectionsORKA_DB_MAX_CONNECTION= application database max connectionsORKA_GPKG_PATH= path to where the created gpkg files should be placedORKA_LAYERS_PATH= path to folder containing the layer sqls. This folder must be located within the instance folderORKA_THREAD_TIMEOUT= timeout in seconds after which a running thread should be killed.ORKA_MAX_THREADS= number of allowed threadsORKA_LOG_FILE= path to log fileORKA_STYLE_PATH= path to the file that contains all styles, etc.ORKA_STYLE_FILE= name of the zip file (including.zip) that contains all styles, etc.ORKA_LAYER_GROUPS_FILE= name of the json file (including.json) that contains the configuration for layer groups.ORKA_MAX_BBOX= maximum allowed size of the bbox in sqkm.ORKA_LOG_LEVEL= log levelORKA_APP_PORT= the port under which the app is running onExample config.py:PG_USER='user'PG_PASSWORD='password'PG_HOST='localhost'PG_PORT=5432PG_DATABASE='postgres'ORKA_DB_USER='user2'ORKA_DB_PASSWORD='password2'ORKA_DB_HOST='localhost'ORKA_DB_PORT=5555ORKA_DB_DATABASE='postgres'ORKA_DB_SCHEMA='public'ORKA_DB_MIN_CONNECTION=1ORKA_DB_MAX_CONNECTION=1ORKA_GPKG_PATH='data/'ORKA_LAYERS_PATH='layers/'ORKA_THREAD_TIMEOUT=60ORKA_MAX_THREADS=4ORKA_LOG_FILE='/var/log/orka_vector_api/orka_vector_api.log'ORKA_LOG_LEVEL='WARNING'ORKA_STYLE_PATH='styles/'ORKA_STYLE_FILE='style.zip'ORKA_LAYER_GROUPS_FILE='groups.json'ORKA_MAX_BBOX=23211ORKA_APP_PORT=5000Publishingupdate version number in setup.py and orka_vector_api/init.pyrun following commands:python3-mvenvvenv_publishsourcevenv_publish/bin/activate
pipinstall-rrequirements_publish.txt
pythonsetup.pysdistbdist_wheel# make sure following command prints 'passed' on all files in dist/twinecheckdist/*
twineuploaddist/*
Package: orkestra
OrkestraThe elegance of Airflow + the power of AWSexamples/hello_orkestra.pyimportrandomfromtypingimport*fromuuidimportuuid4fromaws_lambda_powertoolsimportLogger,TracerfrompydanticimportBaseModelfromorkestraimportcomposefromorkestra.interfacesimportDurationdefdag():(generate_item>>add_price>>copy_item>>double_price>>(do_nothing,assert_false)>>say_hello>>[random_int,random_float]>>say_goodbye)classItem(BaseModel):id:strname:strprice:Optional[float]=None@classmethoddefrandom(cls):returncls(id=str(uuid4()),name=random.choice(["potato","moon rock","hat",]),)logger=Logger()tracer=Tracer()default_args=dict(enable_powertools=True,timeout=Duration.seconds(6),)@compose(**default_args)defgenerate_item(event,context):logger.info("generating random item")item=Item.random().dict()logger.info(item)tracer.put_metadata("GenerateItem","SUCCESS")returnitem@compose(model=Item,**default_args)defadd_price(item:Item,context):price=3.14logger.info("adding price to item",extra={"item":item.dict(),"price":price,},)item.price=pricereturnitem.dict()@compose(model=Item,**default_args)defcopy_item(item:Item,context)->list:logger.info(item.dict())return[item.dict()]*10@compose(model=Item,is_map_job=True,**default_args)defdouble_price(item:Item,context):item.price=item.price*2returnitem.dict()@compose(**default_args)defassert_false(event,context):assertFalse@compose(**default_args)defdo_nothing(event,context):logger.info({"doing":"nothing"})@compose(**default_args)defsay_hello(event,context):return"hello, world"@compose(**default_args)defsay_goodbye(event,context):return"goodbye"@compose(**default_args)defrandom_int(event,context):returnrandom.randrange(100)@compose(**default_args)defrandom_float(event,context):returnfloat(random_int(event,context))dag()app.py#!/usr/bin/env python3fromaws_cdkimportcoreascdkfromexamples.hello_orkestraimportgenerate_itemclassHelloOrkestra(cdk.Stack):def__init__(self,scope,id,**kwargs):super().__init__(scope,id,**kwargs)generate_item.schedule(self,expression="rate(5 minutes)",state_machine_name="hello_orkestra",)app=cdk.App()app.synth()
Package: orkg
orkg-pypiA python client interacting with the ORKG API and sprinkling some python magic on top.The package a implements many of the API calls described in thedocumentation, and provides a set of extra features like graph pythonic objects and dynamic instantiation of entities from specifications.You can find details about how-to use the package onRead the Docs.Developers, please note that you need to install the pre-commit script viapipinstall-rrequirements.txt
pre-commitinstallAnd check theCONTRIBUTING.mdfor more details.Noteworthy ContributorsSpecial thanks to the following awesome peopleAllard OelenKheir Eddine FarfarOmar Arab OghliJulia Evans
Package: orlike
OrLike使用LeanCloud, 部署在vercel的博客点赞插件, 保障安全.当前功能:分离APPID/APPKEY, 保护账号安全使用随机用户ID, 不保存用户其他信息, 保障用户隐私支持设置用户过期时间支持取消点赞/踩将orlike发布为pipy包, 方便自动升级加载动画自定义图标和CDNBranchserver: server端代码client: client端代码master: demoDeployment在这里可以将OrLike部署到你的Vercel账户上.我们更推荐使用这个零配置的例子.Usage在你期望嵌入OrLike的页面加入以下链接:<scriptsrc="https://cdn.jsdelivr.net/gh/caibingcheng/orlike@client/orlike.min.js"></script>当然, 也可以使用自己的CDN. 本项目也依赖JQuery, 所以别忘记引用JQuery:<scriptsrc="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js"></script>接下来, 在你期望嵌入OrLike的位置加上一个div标签, 并且加上class或者id:<divclass="orlike-box"></div>然后在合适的地方初始化OrLike:<script>newOrLike({serverUrl:"https://orlike.vercel.app/",el:".orlike-box",days:30,icon:{like:"fa fa-heart",dislike:false},style:"https://cdn.jsdelivr.net/gh/caibingcheng/orlike@client/orlike.min.css",});</script>尽管可以使用公共的serverUrl, 但是更推荐使用私有的serverUrl, 这样更容易保证数据安全.目前初始化需要的参数:serverUrl:必填, Vercel服务地址el:必填, 放orlike的div名字(class或id)days: 可选, 用户id保存的时间, 默认是30天icon: 可选, 自定义点赞和踩的图标, 不填写这是默认, 如果是false, 则不显示对应的按扭style: 可选, 可自定义样式, 如果不填写, 则使用默认CDNifont: 可选, 可自定义font-awesome CDN, 如果不填写, 则使用默认CDN到此为止, 本地工作已经做完了, 现在需要创建LeanCloud账户, 可以参考Valine的配置方法.创建账户并且新建应用之后， 需要给应用添加一个名为OrLike的class, 并且设置读写权限为所有用户, 然后再拿到LeanCloud的APP ID和APP Key填入到Vercel的环境变量.APPID对应APP IDAPPKEY对应APP Key然后部署OrLike就可以正常工作了.Todo & Contributes项目初期, 还有很多想象空间, 加油↖(^ω^)↗提供点赞/踩排名
Package: orlo
# Orlo
[![Build Status](https://travis-ci.org/eBayClassifiedsGroup/orlo.svg?branch=master)](https://travis-ci.org/eBayClassifiedsGroup/orlo/) [![Documentation Status](https://readthedocs.org/projects/orlo/badge/?version=latest)](http://orlo.readthedocs.org/en/latest/?badge=latest)An API for tracking deployments, written with Python, Flask and SqlAlchemy.## AboutOrlo originated as part of a siteops hackathon at eBay classifieds, and is currently in development by staff at gumtree.com, kijiji.ca, mobile.de and 2dehands.be (all part of eBay Classifieds).
It aims to cover the needs of all eCG platforms with respect to gathering information about deployments, while being simple to integrate with existing deployment software and scripts. This currently includes:Person who performed the releaseDev team responsiblePlatforms deployed toStart time, finish time, and duration by packageVersions of packages releasedExternal references such as issue tracking ticketsOutput such as logsWith this information, it will be possible to build dashboards and more intelligent release tooling.The API should also be agnostic to release process, server container or packaging format - all platforms do things differently. It should be forgiving and “do the right thing” in the case of missing data, as not all platforms will use every field.# Road mapIn the begining:Records release information in a databaseReturns release information in JSONAPI documentationIn future:UI to display and consume the dataControl API for performing deployments## Documentation[http://orlo.readthedocs.org](http://orlo.readthedocs.org)For sources, see the docs/ directory. Documentation can be compiled withmake html.
Package: orloclient
Python client for the [Orlo](https://github.com/eBayClassifiedsGroup/orlo) server.Installationpip install orloclientConfigurationIf orlo server is on the same box, put a section in /etc/orlo.ini:[client]
uri=http://orlo.hostOtherwise, orloclient will read the ini file above from~/.orlo.inior ``
./orlo.ini``.This is the only configuration at present and is not required, it just saves you from
constantly having to type--urihttp://orlo.hoston the command line.Command-line UsageWith an Orlo server running on localhost:5000, and client/uri configured in orlo.ini:$ orloclient create-release -p test -u alex
Created release with id e42a478f-cc08-42e9-a9fb-c98ec65c414d

$ orloclient create-package e42a478f-cc08-42e9-a9fb-c98ec65c414d test-package 1.0.0
Created package with id 7510ffc0-4f0e-4fc1-925f-96ecb84e6db8

$ orloclient start 7510ffc0-4f0e-4fc1-925f-96ecb84e6db8

$ orloclient stop 7510ffc0-4f0e-4fc1-925f-96ecb84e6db8

$ orloclient list
[
  {
    "user": "alex",
    "platforms": [
      "test"
    ],
    "packages": [
      {
        "status": "SUCCESSFUL",
        "release_id": "e42a478f-cc08-42e9-a9fb-c98ec65c414d",
        "id": "7510ffc0-4f0e-4fc1-925f-96ecb84e6db8",
        {...}
      }
    ],
    {..}
  }
]Seeorloclient-hfor more details.Usage in Pythonvagrant@debian-jessie:/vagrant$ ipython
Python 2.7.9 (default, Mar  1 2015, 12:57:24)
Type "copyright", "credits" or "license" for more information.

IPython 4.0.1 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: import orloclient, json

In [2]: client = orloclient.OrloClient(uri='http://localhost:5000')

In [3]: release = client.create_release(user='alex', platforms=['alexdev'])

In [4]: package = client.create_package(release, name='package-one', version='1.0.0')

In [5]: client.package_start(package)
Out[5]: True

In [6]: client.package_stop(package)
Out[6]: True

In [7]: client.release_stop(release)
Out[7]: True

In [8]: doc = client.get_release_json(release.id)

In [9]: print(json.dumps(doc, indent=2))
{
  "releases": [
    {
      "platforms": [
        "alexdev"
      ],
      "ftime": "2016-03-03T16:56:03Z",
      "stime": "2016-03-03T16:55:05Z",
      "team": null,
      "duration": 57,
      "references": [],
      "packages": [
        {
          "status": "SUCCESSFUL",
          "rollback": false,
          "name": "package-one",
          "version": "1.0.0",
          "ftime": "2016-03-03T16:55:56Z",
          "stime": "2016-03-03T16:55:52Z",
          "duration": 4,
          "diff_url": null,
          "id": "9877cd69-1196-42dc-8d6c-0b7c95e11a5d"
        }
      ],
      "id": "700ff271-f705-4bfb-8582-b74633759feb",
      "user": "alex"
    }
  ]
}TestsThere are two test suites, test_orloclient and test_integration. The former tests the orlo client functions while mocking the requests library, courtesy of HTTPretty <https://github.com/gabrielfalcao/HTTPretty>, while the integration tests run an actual Orlo server to test against.
Package: orloj
OrlojGetting StartedThe following example shows you how to setupOrlojMiddlewareto run scheduled tasks alongside
yourFastAPIapplication.fromfastapiimportFastAPIfromloggingimportLogger,getLoggerfromorlojimportOrlojMiddlewarefromstarlette.responsesimportPlainTextResponse,RedirectResponseapp=FastAPI()logger:Logger=getLogger("uvicorn")defhello_name(name:str)->None:logger.info(f"Hello,{name}!")defhello_world()->None:logger.info("Hello, World!")@app.get("/")asyncdefredirect_to_swagger_docs()->RedirectResponse:"""Redirects to swagger documentation"""returnRedirectResponse("/docs")@app.get("/health",response_class=PlainTextResponse,status_code=200)asyncdefhealth()->str:"""Health check"""return"OK"app.add_middleware(OrlojMiddleware,interval=3,job=hello_name,name="Igor")app.add_middleware(OrlojMiddleware,interval=6,job=hello_world)ContributionsTo contribute to the project, fork the repository and clone to your local device and development
dependencies including three extra libraries not included in final builds as such:black- The uncompromising Python code formattermypy- Optional static typing for Pythonpytest- The pytest framework makes it easy to write small tests, yet scales to support complex functional testingUse the following commands to setup your local environment with development dependencies:pipinstall--userpoetry
poetryinstall--withdevAcknowledgementsWikimedia Commons - File:Prague Astronomical Clock.svgLicenseThis project is licensed under the terms of the MIT license.
Package: orm
ORMTheormpackage is an async ORM for Python, with support for Postgres,
MySQL, and SQLite. ORM is built with:SQLAlchemy corefor query building.databasesfor cross-database async support.typesystemfor data validation.Because ORM is built on SQLAlchemy core, you can use Alembic to provide
database migrations.Documentation:https://www.encode.io/ormInstallation$pipinstallormYou can install the required database drivers with:$pipinstallorm[postgresql]$pipinstallorm[mysql]$pipinstallorm[sqlite]Driver support is provided using one ofasyncpg,aiomysql, oraiosqlite.QuickstartNote: Useipythonto try this from the console, since it supportsawait.importdatabasesimportormdatabase=databases.Database("sqlite:///db.sqlite")models=orm.ModelRegistry(database=database)classNote(orm.Model):tablename="notes"registry=modelsfields={"id":orm.Integer(primary_key=True),"text":orm.String(max_length=100),"completed":orm.Boolean(default=False),}# Create the tablesawaitmodels.create_all()awaitNote.objects.create(text="Buy the groceries.",completed=False)note=awaitNote.objects.get(id=1)print(note)# Note(id=1)— 🗃 —ORM isBSD licensedcode. Designed & built in Brighton, England.
Package: ormar-casbin-adapter
ormar Adapter for PyCasbinRepoGitHubPyPIormar Adapter is theormaradapter forPyCasbin. With this library, Casbin can load policy from ormar supported database or save policy to it.Based onOfficially Supported Databases, The current supported databases are:PostgreSQLMySQLSQLiteInstallationpip install ormar_casbin_adapterorpoetry add ormar-casbin-adapterSimple Exampleimportcasbinimportdatabasesimportormarfromormar_casbin_adapterimportDatabasesAdapterimportsqlalchemydatabase=Database("sqlite://",force_rollback=True)metadata=sqlalchemy.MetaData()classCasbinRule(ormar.Model):classMeta:database=databasemetadata=metadatatablename="casbin_rules"id:int=ormar.Integer(primary_key=True)ptype:str=ormar.String(max_length=255)v0:str=ormar.String(max_length=255)v1:str=ormar.String(max_length=255)v2:str=ormar.String(max_length=255,nullable=True)v3:str=ormar.String(max_length=255,nullable=True)v4:str=ormar.String(max_length=255,nullable=True)v5:str=ormar.String(max_length=255,nullable=True)adapter=DatabasesAdapter(model=CasbinRule)e=casbin.Enforcer("path/to/model.conf",adapter,True)sub="alice"# the user that wants to access a resource.obj="data1"# the resource that is going to be accessed.act="read"# the operation that the user performs on the resource.ife.enforce(sub,obj,act):# permit alice to read data1ormar_casbin_adapterpasselse:# deny the request, show an errorpassGetting HelpPyCasbinLicenseThis project is licensed under theApache 2.0 license.
Package: ormar-postgres-full-text
ormar-postgres-full-textExtension to use full text search from postgresql in ormar ORM.Installpipinstallormar-postgres-full-textUsageFor usage example refer toexamples/basic_example/main.pyCaveatTSVector is not a textual data type.
Although you pass a string as the value, postgres would transform it internally and represent it as bag of words, so when retrieving a model containing TSVector, the value will be different than the one you provided initially.>>> await FulltextModel.objects.create(text="hello world")
>>> (await FulltextModel.objects.filter(text__match="hello").first()).text
"'hello' 'world'"
Package: ormchair
#### Is an ORM for Apache CouchDB, with the following killer features:Uses [Requests](http://docs.python-requests.org/en/latest/)Support for document linking and retrieval (many to many) with secondary indexes to query more easilyAbility to export the schema as [JSON-Schema](http://json-schema.org/) compatiable json, ideal for frontend validationCreate and query views based on a simple index, without the need to create JS viewsVersioning and tagging of schema changes, so that migrates between versions can be doneAutomatic synchronisation of design documents based on defined classes#### Features yet to be implemented:AttachmentsReplication### DocumentationComing soon. However good test coverage included so check that out for the basics.### Version
0.3.0### Requirements
- Python 2.7.x
- Apache CouchDB 1.2.1 or above### License
Code is licensed under Apache License 2.0
Package: orm-collector
ORM Collector SchemmaEste módulo consiste en la descripción de modelos de tablas
y sus relaciones, las clases que administran los datos de manera
sencilla entregando una API, y las herramientas de creación del
esquema.Tecnologías que usaSqlalchemyGeoSqlalchemyPosgresqlPython3Modo de instalaciónPrimero, deberás clonar el proyecto:git clone http://gitlab.csn.uchile.cl/dpineda/orm_collector.gitLuego, instalar en modo develop dentro de tu ambiente
virtualpython setup.py develop
Package: ormconfig
A little orm for config file, do transformation to/from python objectExamplesexample.ini:[Section1]
bool_field = True
int_field = 123
#int_default_field = 567
float_field = 456.7
string_field = hello, world

[Section2]
ip_field = 127.0.0.1
ipport_field = 127.0.0.1:12345
ipport_list_field = 127.0.0.1:12345, 127.0.0.2:12346

    [Section3]
    choice_field = releaseexample.py:from ormconfig import *
import sys

class MyConfig(Config):
    class Section1(Section):
        bool_field = BoolField()
        int_field = IntField()
        int_default_field = IntField(default='default value 6')
        float_field = FloatField()
        string_field = StringField()
    class Section2(Section):
        ip_field = IPField()
        ipport_field = IPPortField()
        ipport_list_field = ListField(IPPortField())
    class Section3(Section):
                    choice_field = ChoiceField(StringField(), ['debug', 'release'], 'debug')

try:
    config = MyConfig.load('example.ini')
except Error as e:
    print('Failed to load file: %s' % str(e))
    sys.exit(1)

print(config.Section1.bool_field)
print(config.Section1.int_field)
print(config.Section1.int_default_field)
print(config.Section1.float_field)
print(config.Section1.string_field)
print(config.Section2.ip_field)
print(config.Section2.ipport_field)
print(config.Section2.ipport_list_field)
    print(config.Section3.choice_field)output:True
123
default value 6
456.7
hello, world
127.0.0.1
('127.0.0.1', 12345)
[('127.0.0.1', 12345), ('127.0.0.2', 12346)]
    release
Package: orm-converter
Orm-ConverterInstallationpipinstallorm-converterorpipinstallgit+https://github.com/MaxZayats/orm-converterAvailable conversionsTortoiseORM->DjangoORMUsage Examples1. Simple Usagefromorm_converter.tortoise_to_djangoimportConvertedModelfromtortoiseimportfieldsfromtortoise.modelsimportModelasTortoiseModelclassExampleModel(TortoiseModel,ConvertedModel):example_field=fields.IntField()ExampleModel.DjangoModel# <- Converted Django Model2. Redefining fields/attributesfromorm_converter.tortoise_to_djangoimport(ConvertedModel,RedefinedAttributes)fromtortoise.modelsimportModelasTortoiseModelfromcustom_django_fieldsimportCustomDjangoFieldfromcustom_tortoise_fieldsimportCustomTortoiseFieldclassExampleModel(TortoiseModel,ConvertedModel):custom_field=CustomTortoiseField()classRedefinedAttributes(RedefinedAttributes):"""In this class you can redefine your tortoise attributes to django attributes.You can use this if you have a custom fieldsOr if `orm_converter` converts fields incorrectly."""custom_field=CustomDjangoField()3. Adding custom convertersfromorm_converter.tortoise_to_djangoimport(BaseTortoiseFieldConverter,ConvertedModel,Converter)fromtortoise.modelsimportModelasTortoiseModelfromcustom_django_fieldsimportCustomDjangoFieldfromcustom_tortoise_fieldsimportCustomTortoiseFieldclassMyCustomFieldConverter(BaseTortoiseFieldConverter):ORIGINAL_FIELD_TYPE=CustomTortoiseFieldCONVERTED_FIELD_TYPE=CustomDjangoFielddef_reformat_kwargs(self):super()._reformat_kwargs()# change field kwargs hereself._original_field_kwargs["custom_kwarg"]="Django"Converter.add_converters(MyCustomFieldConverter)classExampleModel(TortoiseModel,ConvertedModel):custom_field=CustomTortoiseField(custom_kwarg="Tortoise")
Package: orm-creator
DescriptionMap SQL (MySQl) table(s) and generate ORM classes for them automatically !!
This proves to be very useful especially in cases where the number of tables is hugeDemoFrom command lineAs a python moduleInstallationUsing this repositorygitclonehttp://github.com/shravan97/ORM-CreatorcdORM-Creatorpythonsetup.pyinstallUsing pipComing up soon !Usageusage:orm-creator[-h][-dbDB][-tTABLES[TABLES...]][-hostHOST][-uUNAME][-oOUTFILE]optionalarguments:-h,--helpshowthishelpmessageandexit-dbDBThenameofdatabasefromwhichtableswillhavetomapped-tTABLES[TABLES...]Listoftablenameseachseparatedbyoneormorespace-hostHOSTNameoftheMySqlhostForEg.,localhost,mysql.mydomain.com,....etc-uUNAMEYourMysqlusername-oOUTFILEOutputfilename,alongwithitsextensionandabsolutepathForEg.,/home/shravan97/Desktop/out.pySampleAs a command line apporm-creator-uroot-dbdemo-tusersmigrations-o/var/www/flaskApp/db.py# The above statement maps `users` and `migrations` tablesAs a modulefromorm_creatorimportormCreatoroc=ormCreator(config,'demo',['users','migrations'],'/var/www/flaskApp/db.py')# config is stored as a dict . For eg. , config = {'uname':'root','password':'**','host':'localhost'}oc.generate_file()Please checkhereContributionsFound any cool idea that could be implemented here ? Go ahead and give a pull request :smile: !
You may as well put it up as an issuehereContributorsshravan97LicenseGNU General Public License v3 (GPLv3)
Package: ormdb
Automated orm framework:Map the database according to the entity class;It has its own method of adding, deleting, modifying and checking, and each method can set multiple conditions;Complete the operation on the database without writing sql;Support multiple database types, including mainstream relational database, non-relational database, middleware storage, etc.;Free and open source, continuous improvement and update.How to use?Please click here.https://github.com/YouAreOnlyOne/FastFrameJar/blob/master/PythonForORMDB/README.MDMoreWe are working hard to perfect…
Package: orm-django
orm-djangoThe power of Django ORM for use in standalone scripts.Installpip install orm-djangoDefine Django settingsBy default the ORM settings will use DJANGO_SETTINGS_MODULE from environment variable. If not found we will fallback to settings module.Minimum settings configurationYou should at least configure your INSTALLED_APPS in settings to be able to use its models:INSTALLED_APPS = [
    'app_1',
    ...
    'app_n',
]And the database:DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': DB_NAME,
        'USER': DB_USER,
        'PASSWORD': DB_PASSWORD,
        'HOST': DB_HOST
    },
}To use, just import it at the first line of your script file:import ormand you will be able to import and use all models form your apps.Tested using Python > 3.7 and Django >= 4.0