Saravanan666/pypi-org huggingface dataset:
Package: dbt-workflows-factory
dbt-workflows-factoryCreates dbt based GCP workflows.InstallationUse the package managerpipto installdbt-workflows-factoryfor [dp (data-pipelines-cli)]:pipinstalldbt-workflows-factoryHow to runTo call from cli, you canpython-mdbt_workflows_factory.cliconvert\--image-urimy-image-uri\--gcs-key-volume-remote-pathgoogle-cloud-storage/path/\--gcs-key-volume-mount-path/etc/gcs-key/\--gcs-key-volume-container-mount-path/etc/gcs-key/:/etc/gcs-key/:ro\--container-gcp-key-path/etc/gcs-key/path.json\--container-gcp-project-idsome-project-id\--pretty\tests/unit/dbt_workflows_factory/test_data/manifest.json>workflow_source.jsonProject Organization.devcontainer - This directory contains required files for creating aCodespace..githubworkflows - Contains GitHub Actions used for building, testing and publishing.publish.yml - Publish wheels tohttps://pypi.org/pull-request.yml - Build and Test pull requests before commiting to main.template-sync.yml - Update GitHub Repo with enhancments to base templatedocs - collect documents (default format .md)src - place new source code herepython_package - sample package (this can be deleted when creating a new repository)tests - contains Python based test cases to validation src code.pre-commit-config.yaml - Contains various pre-check fixes for Pythonpyproject.toml - Python Project DeclarationPublish to PyPi from GitHubIn order to publish to PyPi, a repostirory secret must be created, "PYPI_PASSWORD". In order to publish to the Test PyPi, a second secret must be added, "TEST_PYPI_PASSWORD".
Package: dbtx-cockroachdb
dbtx-cockroachdbThedbtx-cockroachdbpackage contains all of the code enabling dbt to work with a Cockroachdb database.ReferenceThis repo is built base off the source available athttps://github.com/dbt-labs/dbt-core/tree/main/plugins/postgreswith changes added to function with CockroachDB.Getting startedInstall dbtRead theintroductionandviewpoint
Package: dbug
IntroductionQuick Debug functions to print informations on the context.Each function has 3 optional keyword-only arguments :i: indent level (defaults to 0)indent_str: indent string for one level (defaults to 2 spaces)stream: file-like object to output (defaults to stderr)These two last parameters are actually defaulted to the module variablesdbug._Dindent_stranddbug._Dstream.Each functionsFexist in 2 flavours :F: normalnF: print a new line beforeFunctions available[n]D(*args,**kw): Simply prints*args[n]Dvar(*expr,**kw): Print for each expressionexpr:f'{expr}={eval(expr)}\n'[n]DWAI(**kw): PrintW-hereA-mIwith this format :module.function(param=val_param,param2=val_param2...)# /path/to/function/definition:line_of_DWAI_call[n]DNL(**kw): Print aN-ewL-ine (iandindeit_strhave no effect on this oneDnop(res, *args): Returnsres, so that one can execute any side effect function in a list comprehension (best used withDvar())DnopL(*args,res): Same asDnopbut execute the side effects firstClasses AvailableThere is also theDbugclass which takes as parametersstreamandindent_strand have the normal version of the previous functions without the leading D, passing themstreamand defaulting the indent level toDbug.indent_levelDbug.__call__(*args,**kw)callsDDbug.var(*expr,**kw)callsDvarDbug.var(*expr,**kw)callsDvarDbug.WAI(**kw)callsDWAIDbug.NL(**kw)callsNLThis class is also acontext managerand you can do things likewith Dbug(open('log', 'w')) as D :
  D.WAI()
  D.var('a')As a shortcut to change the indent level for aDbuginstance object, you can use the shift operatorwith Dbug(open('log', 'w')) as D :
  D.WAI()
  D>>1  # indent level is now 1
  D.var('a')
  D<<1  # indent level is back to 0Installationpip install dbugHISTORY1.0.b5FIXIntempestive print inD()FIXReadme orthograph1.0.b4ADD__all__module variable to export only relevent objectsADDDbugClassFIXTypo onD()which prevented using the passed stream
Package: dbug12
d-bug12is both a Python api, and a command line interface for the Dbug-12 program flashed in Motorola's HC12 chipsd-bug12Installationpipinstalldbug12You should have Python's user base directory in your path for the CLI to work properly. In case it's not, usepython -m site --user-baseto get it and add it to your system path.ManuallyAlthough the recommended way to install is using Python's package installer, there is an installation script (Linux only) in case you don't havepipset up.sudo./installCLI usagedbug12[flags]<command>usage: dbug12 [-h] [-p PORT] <command> ...

positional arguments:
  <command>             dbug12 <command> -h will show further usage and
                        arguments, if any. Available commands are:

    load                Load a compiled program into memory
    next-instruction    Run a single instruction (from current PC)
    run                 Start execution from a specific point of memory
    monitor             Spawns a terminal that directly communicates with the board
    get-registers       Display CPU registers
    erase-memory        Erase a section of memory
    get-memory          Display a section of memory

optional arguments:
  -h, --help            show this help message and exit
  -p PORT, --port PORT  serial communication port accessed by the board.
                        Default: "/dev/ttyUSB0"ExamplesExamples for the Python api can be found inexamples.AssemblingA command line implementation of the HC12 assembler for Linux can be found at68hc12-linux.
Package: dbupgrade
dbupgradeDatabase Migration ToolBasic UsageUsage:dbupgrade [OPTIONS] [-l API_LEVEL|-L] DBNAME SCHEMA DIRECTORYUpgrade the givenSCHEMAin the database specified asDBNAMEwith SQL
scripts fromDIRECTORY.DIRECTORYis searched for all files with the.sqlsuffix. These files are SQL scripts with a special header sections:-- Schema: my-db-schema-- Version: 25-- API-Level: 3-- Dialect: postgresCREATETABLE...The following headers are required:SchemaName of the schema to update.DialectDatabase dialect of this script. Use SQLalchemy's database
URL scheme identifier, e.g.postgresorsqlite.VersionThe new version of the schema after this script was applied.
It is an error if two scripts have the same schema, dialect, and version.API-LevelThe new API level of the schema after this script was applied.
For a given schema, the API level of a subsequent version must either be
equal or higher by one than the API level of the preceding version. For
example, if script version 44 has API level 3, script version 45 must
have API level 3 or 4.Transaction(optional)Possible values areyes(default) andno. When this
header is yes, all statements of a single upgrade file and the
corresponding version upgrade statements are executed within a single
transaction. Otherwise each statement is executed separately. The former
is usually preferable so that all changes will be rolled back if a
script fails to apply, but the latter is required in some cases.The database must contain a tabledb_configwith three columns:schema,version, andapi_level. If this table does not exist, it is created.
This table must contain exactly one row for the given schema. If this row
does not exist, it is created with version and api_level initially set to 0.The current version and API level of the schema are requested from the
database and all scripts with a higher version number are applied, in order.
If there are any version numbers missing, the script will stop after the
last version before the missing version.Unless the-lor-Loption is supplied, only scripts that do not
increase the API level will be applied. If the-loption is given, all
scripts up to the given API level will be applied.-Lwill apply all
scripts without regard to the API level.Each script is executed in a seperate transaction. If a script fails, all
changes in that script will be rolled back and the script will stop with
an error message and a non-zero return status.JSON OutputWhen supplying the--jsonoption,dbupgradewill information about the
applied scripts as JSON to the standard output. Sample output:{"success":true,"oldVersion":{"version":123,"apiLevel":15},"newVersion":{"version":125,"apiLevel":16},"appliedScripts":[{"filename":"0124-create-foo.sql","version":124,"apiLevel":15},{"filename":"0125-delete-bar-sql","version":125,"apiLevel":16}],"failedScript":{"filename":"0126-change-stuff.sql","version":126,"apiLevel":16}}successistrueif all scripts were applied successfully or no scripts
were to be applied. In this case, thefailedScriptkey is not defined.
TheappliedScriptskey is always defined. In case no scripts were applied,
it's an empty array.
Package: dburi
# dburiuse python parse database uri address, return format什么是uri ?  简单说uri是配置地址的一种表达方式，可以在一行里详细的描述出host,port,user,passwd,database,tablename,other field原本是想在python社区里淘淘，结果没发现能用的database uri解析模块，就自己搞了一个。new version :解决了dburi兼容python 2.6 3.x的问题增加了常见数据库的端口补充增加了ini配置文件的解析[更多文档](http://xiaorui.cc  "更多db uri")### 安装```pip install dburi``````git clone git@github.com:rfyiamcool/dburi.gitcd dburipython setup.py install```### 方法mysql://xiaorui:123@localhost/xiaorui_master?option=open&charset=utf8&table=test'```mysql标示位表明是哪个数据库xiaorui:123 表明的是账号和密码@localhost 表明的是数据库HOST地址/xiaorui_master 表明的是数据库名字?k=v&k=v 这堆传参是作为扩展字段使用的```开始测试,端口可以不填写，但是数据库要写全称```from dburi import parse_db_strprint parse_db_str('mysql://xiaorui:123@localhost/xiaorui_master?option=open&charset=utf8&table=test')print parse_db_str('mysql://xiaorui:123@localhost/xiaorui_master')print parse_db_str("mongo://127.0.0.1:27017/xiaorui_master")print parse_db_str('redis://127.0.0.1:6379')print parse_db_str('elasticsearch://127.0.0.1:9200')print parse_db_str('hbase://127.0.0.1:9090/xiaorui')print parse_db_str('memcached://127.0.0.1:11211')```Result 结果```{'name': 'mysql', 'extra': 'option=open&charset=utf8&table=test', 'passwd': '123', 'charset': 'utf8', 'db': 'xiaorui_master', 'host': 'localhost', 'user': 'xiaorui', 'table': 'test', 'port': 3306, 'option': 'open'}{'name': 'mysql', 'passwd': '123', 'db': 'xiaorui_master', 'host': 'localhost', 'user': 'xiaorui', 'port': 3306}{'host': '127.0.0.1', 'db': 'xiaorui_master', 'name': 'mongo', 'port': 27017}{'host': '127.0.0.1', 'name': 'redis', 'port': 6379}{'host': '127.0.0.1', 'name': 'elasticsearch', 'port': 9200}{'host': '127.0.0.1', 'db': 'xiaorui', 'name': 'hbase', 'port': 9090}{'host': '127.0.0.1', 'name': 'memcached', 'port': 11211}```
Package: db_url
`db_url` provides the `db` command-line utilty for connecting to databases.Install via pip:```$ pip install db_url```### Designed for use with PAAS```$ export DATABASE_URL=`heroku config:get DATABASE_URL`$ dbpsql (9.4.0, server 9.3.3)SSL connection (protocol: TLSv1.2, cipher: DHE-RSA-AES256-GCM-SHA384, bits: 256, compression: off)Type "help" for help.d6p6s3877j3em=>```### Use with mysql, postgres, sqlite```$ export DATABASE_URL='sqlite://'$ dbSQLite version 3.8.5 2014-08-15 22:37:57Enter ".help" for usage hints.Connected to a transient in-memory database.Use ".open FILENAME" to reopen on a persistent database.sqlite> ^D$ export DATABASE_URL='mysql://razzi@localhost/test_database'$ dbWelcome to the MySQL monitor.  Commands end with ; or \g.Your MySQL connection id is 102Server version: 5.6.22 HomebrewCopyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql>```### Database arguments work as expectedSet startup options:```$ db -q --variable=PROMPT1="> " --variable=PROMPT2="  "> SELECT table_name, table_schemaFROM information_schema.tablesWHERE table_schema NOT IN ('pg_catalog', 'information_schema');table_name         | table_schema----------------------------+--------------django_migrations          | publicdjango_content_type        | publicdjango_admin_log           | publicauth_group_permissions     | publicdjango_session             | publicauth_group                 | publicauth_user_groups           | publicauth_permission            | publicauth_user_user_permissions | publicauth_user                  | public(10 rows)```Run a command:```$ db -tA -c '\dt'public|auth_group|table|razzipublic|auth_group_permissions|table|razzipublic|auth_permission|table|razzipublic|auth_user|table|razzipublic|auth_user_groups|table|razzipublic|auth_user_user_permissions|table|razzipublic|django_admin_log|table|razzipublic|django_content_type|table|razzipublic|django_migrations|table|razzipublic|django_session|table|razzi```### Tips + tricksConnect to local databases```$ createdb testdb$ export DATABASE_URL=postgres:///testdb$ dbpsql (9.4.0)Type "help" for help.testdb=#```
Package: dbus2any
convert dbus instrospection to codeFree software: ISC licenseDocumentation:https://dbus2any.readthedocs.org.FeaturesConvert xml into python-dbus clientexamplesMPRIS2 media players> python -m dbus2any -t pydbusclient.tpl -n ‘org.mpris.MediaPlayer2.gmusicbrowser’ -p ‘/org/mpris/MediaPlayer2’> python -m dbus2any -t pydbusclient.tpl -n ‘org.mpris.MediaPlayer2.vlc’ -p ‘/org/mpris/MediaPlayer2’Pidgin (libpurple)> python -m dbus2any -t pydbusclient.tpl -n ‘im.pidgin.purple.PurpleService’ -p ‘/im/pidgin/purple/PurpleObject’History0.1.0 (2015-01-11)First release on PyPI.
Package: dbus-client-gen
IntroductionThis library contains a few methods that consume an XML specification of
a D-Bus interface and return classes or functions that may be useful in
constructing a python D-Bus client. The XML specification has the
format of the data returned by the Introspect() method of the Introspectable
interface.Methodsmanaged_object_classThis function consumes the spec for a single interface and returns a class
which constructs objects which wrap the table for a particular object in the
format returned by the GetManagedObjects() method of the ObjectManager
interface. Each object has an instance method for each property of the
interface.mo_query_builderThis function consumes the spec for a single interface and returns a function
which implements a query on the whole object returned by a GetManagedObjects()
call. The query function takes two arguments: the GetManagedObjects() object
and a dict of key/value pairs. The query function generates pairs of the
object path and corresponding table which match all the key/value pairs in
the table.ErrorsThis library exports the exception type  DbusClientError and all its subtypes.
It constitutes a bug if an error of any other type is propagated during class
generation or when the methods of the class are executed.The following shows the error heirarchy. Entries after the dash indicate
additional fields beyond the message which the exception contains. Only leaves
of the error class heirarchy are constructed directly.DbusClientErrorDbusClientGenerationError
This exception is raised if an error occurs while generating a method.
Such an exception would result from introspection data which lacked the
necessary attributes or entries.DbusClientRuntimeError - interface name
This exception is raised if there is an error while the generated method
is executing.DbusClientMissingInterfaceError
This exception is raisded if when constructing a managed object it
turns out that its argument does not have an entry for the
expected interface.DbusClientMissingPropertyError - property name
This exception is raised if when reading a value for a managed
object it turns out that the value corresponding to that property
is not available.DbusClientMissingSearchPropertiesError - too many fields to list here
This exception is raised if when traversing a GetManagedObjects()
result the keys used by the query have no corresponding values in the
result.DbusClientUnknownSearchPropertiesError – too many fields to list here
This exception is raised if the search properties specified can not
be found in the specified interface.PackagingDownstream packagers, if incorporating testing into their packaging, are
encouraged to use only the tests in the test_deterministic.py module, to
avoid testing failures that may arise due to the non-deterministic behavior
of Hypothesis tests.
Package: dbus-idle
dbus-idlePython library to detect user idle time in milliseconds or inactivity on Linux and Windows.RequirementsPython 3.7 or laterInstallationInstall using:sudo apt install meson libdbus-glib-1-dev patchelf
pip install dbus-idleUsageYou can use this module from the command linedbus-idleor access the current idle time from within your python programfromdbus_idleimportIdleMonitormilliseconds=IdleMonitor().get_dbus_idle()ContributionThis is based on the work byAlexander Frenzel
Package: dbusnotify
#+TITLE: dbusnotify - freedesktop.org notifications library* Overview/dbusnotify/ is a python library for creating desktop notifications using the freedesktop.org notification specification.* UsageThe following example shows how to create a simple notification with an icon#+BEGIN_SRC pythonimport dbusnotifydbusnotify.write('Volume is <u>muted</u>',title='Audio Status',icon='audio-volume-muted',poptime=20,)#+END_SRC[[file:examples/images/dbusnotify_readme_example.png]]- [[file:examples][Additional examples]]* InstallationYou can install from pypi using pip#+BEGIN_SRC shpip install --user dbusnotify#+END_SRCAlternatively, you can get the development version from github#+BEGIN_SRC shgit clone https://github.com/frostidaho/python-dbusnotify.gitpip install --user ./python-dbusnotify#+END_SRC
Package: dbus-python
dbus-python is the original Python binding fordbus, the reference
implementation of the D-Bus protocol.Online documentation can be found at
<http://dbus.freedesktop.org/doc/dbus-python/>.Problems and alternativesdbus-python might not be the best D-Bus binding for you to use. dbus-python
does not follow the principle of “In the face of ambiguity, refuse the
temptation to guess”, and can’t be changed to not do so without seriously
breaking compatibility.In addition, it uses libdbus (which has known problems with multi-threaded
use) and attempts to be main-loop-agnostic (which means you have to select
a suitable main loop for your application).Alternative ways to get your Python code onto D-Bus include:GDBus, part of the GIO module ofGLib, via GObject-Introspection andPyGI(uses the GLib main loop and object model)QtDBus, part ofQt, viaPyQt(uses the Qt main loop and object model)
Package: dbus-signature-pyparsing
A parser for a dbus signature.IntroductionThis module contains a parser for dbus signatures constructed using the
pyparsing library (http://pyparsing.wikispaces.com/).The grammar follows the informal specifications athttps://dbus.freedesktop.org/doc/dbus-specification.html.
This grammar is a very simple one, parsable by an LL(1) parser.The grammar has undergone significant testing using the Hypothesis testing
library (http://hypothesis.works/).Usage and Implementation HintsUsage of the library to verify that a string is a signature is fairly
straightforward:>>> from dbus_signature_pyparsing import Parser
>>> parser = Parser()
>>> parser.PARSER.parseString("a(qy)", parseAll=True)If parseString() does not raise a pyparsing exception, the argument string
is a valid signature.Note that the empty string is a valid signature. Thus, it is important to
require that the parser parse the entire string by setting the parseAll
parameter to True. If parseAll is False, which is the default, the parser
can always parse the empty string, and every string will be parsed and verified
to be a valid signature.The Parser object exposes all its sub-parsers as instance attributes.
The PARSER attribute is the top-level parser, suitable for parsing general
signatures. The COMPLETE attribute parses what is defined in the
informal specification as a “single complete type”. The CODE attribute is
equivalent to the specification’s “type code”.The parser is easily used either by delegation or by inheritance. Each
sub-parser attribute is a ParserElement; consequently each sub-parser supports
the addParseAction() method. To customize the basic parser to return a
particular value as a result of having parsed a signature invoke the
addParseAction() method on each appropriate sub-parser with an appropriately
chosen method. The modified parser should then return the desired value when
the parseString() method is invoked on a valid signature string.
For further assistance, consult pyparsing’s extensive documentation athttp://pyparsing.wikispaces.com/andhttps://pythonhosted.org/pyparsing/.PackagingDownstream packagers, if incorporating testing into their packaging, are
encouraged to use only the tests in the test_deterministic.py module, to
avoid testing failures that may arise due to the non-deterministic behavior
of Hypothesis tests.
Package: dbus_trace
dbus-trace is a wrapper to see what D-Bus messages a program sends and receives.Installation:pip install dbus-traceUsage:dbus-trace <command>#Forexample-notify-sendcreatesadesktopnotificationusingD-Bus$dbus-tracenotify-send"Hello world"* Connected to session bus (connection 0)
◀ method_call: Hello [serial = 1]
  path = /org/freedesktop/DBus
  interface = org.freedesktop.DBus
  destination = org.freedesktop.DBus

...

◀ method_call: Notify [serial = 7]
  path = /org/freedesktop/Notifications
  interface = org.freedesktop.Notifications
  destination = :1.44
  Data (susssasa{sv}i): (
       'notify-send',
       0,
       '',
       'Hello world',
       '',
       [],
       {'sender-pid': ('x', 31559), 'urgency': ('y', 1)},
       -1,
    )

▷ method_return:  [serial = 88]
  Flags: 1 (no_reply_expected)
  destination = :1.944
  reply_serial = 7
  sender = :1.44
  Data (u): (8,)

...dbus-trace listens on Unix sockets for the system bus and the session bus, and
passes through any data sent to these sockets to the real buses. It runs the
child program with environment variables pointing it to use these proxy sockets,
and of course it decodes what’s going through and prints it to the terminal.For more background about D-Bus, seeWhat is D-Bus?.
Package: dbutils3-gonzalo123
Database utils for psycopg3dbutilsInstallpip install dbutils3-gonzalo123From githubpip install -e git+https://github.com/gonzalo123/dbutils3#egg=dbutils-gonzalo123Run testpytestNote: Set up your connection parameters within pytest.ini. I also provide one docker-compose.yml file with a PostgreSQL database ready for the testing.[pytest]python_files=tests.py test_*.py *_tests.pyenv=POSTGRES_HOST=localhostPOSTGRES_PASSWORD=passwordPOSTGRES_USER=usernamePOSTGRES_DB=gonzalo123In this database ther's one table and one stored procedure:CREATETABLEusers(emailVARCHAR(256)UNIQUENOTNULL,"name"VARCHAR(256)NOTNULL);CREATEORREPLACEFUNCTIONhello(namevarchar(100))RETURNSVARCHARAS$$BEGINRETURN'Hello '||name;END;$$LANGUAGEplpgsql;
Package: dbutils-gonzalo123
Database utils for psycopg2dbutilsInstallpip install dbutils-gonzalo123From githubpip install -e git+https://github.com/gonzalo123/dbutils#egg=dbutils-gonzalo123Run testpytestNote: Set up your connection parameters within pytest.ini. I also provide one docker-compose.yml file with a PostgreSQL database ready for the testing.[pytest]python_files=tests.py test_*.py *_tests.pyenv=POSTGRES_HOST=localhostPOSTGRES_PASSWORD=passwordPOSTGRES_USER=usernamePOSTGRES_DB=gonzalo123In this database ther's one table and one stored procedure:CREATETABLEusers(emailVARCHAR(256)UNIQUENOTNULL,"name"VARCHAR(256)NOTNULL);CREATEORREPLACEFUNCTIONhello(namevarchar(100))RETURNSVARCHARAS$$BEGINRETURN'Hello '||name;END;$$LANGUAGEplpgsql;
Package: dbuy-webassets-webpack
Filter for for compiling assets usingWebpackandwebassets.Basic usagefromwebassets.filterimportregister_filterfromwebassets_browserifyimportWebpackregister_filter(Webpack)Usage with DjangoThis requiresdjango-assets.fromdjango_assetsimportBundle,registerfromwebassets.filterimportregister_filterfromwebassets_webpackimportWebpackregister_filter(Webpack)js=Bundle('js/main.js',filters='webpack',output='bundle.js',depends='js/**/*.js')register('js_all',js)