Saravanan666/pypi-org huggingface dataset:
Package: basematic
# BaseMatics ToolsThis is a Tools for basematic applications… [Python Packaging User
Guide][packaging guide]’s [Tutorial on Packaging and Distributing
Projects][distribution tutorial].This project does not aim to cover best practices for Python project
development as a whole. For example, it does not provide guidance or tool
recommendations for version control, documentation, or testing.[The source for this project is available here][src].Most of the configuration for a Python project is done in thesetup.pyfile,
an example of which is included in this project. You should edit this file
accordingly to adapt this sample project to your needs.This is the README file for the project.The file should use UTF-8 encoding and can be written using
[reStructuredText][rst] or [markdown][md use] with the appropriate [key set][md
use]. It will be used to generate the project webpage on PyPI and will be
displayed as the project homepage on common code-hosting services, and should be
written for that purpose.Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not a
good idea, although a simple “What’s New” section for the most recent version
may be appropriate.[packaging guide]:https://packaging.python.org[distribution tutorial]:https://packaging.python.org/en/latest/distributing.html[src]:https://github.com/pypa/sampleproject[rst]:http://docutils.sourceforge.net/rst.html[md]:https://tools.ietf.org/html/rfc7764#section-3.5“CommonMark variant”
[md use]:https://packaging.python.org/specifications/core-metadata/#description-content-type-optional
Package: basematic3
# BaseMatics ToolsThis is a Tools for basematic applications… [Python Packaging User
Guide][packaging guide]’s [Tutorial on Packaging and Distributing
Projects][distribution tutorial].This project does not aim to cover best practices for Python project
development as a whole. For example, it does not provide guidance or tool
recommendations for version control, documentation, or testing.[The source for this project is available here][src].Most of the configuration for a Python project is done in thesetup.pyfile,
an example of which is included in this project. You should edit this file
accordingly to adapt this sample project to your needs.This is the README file for the project.The file should use UTF-8 encoding and can be written using
[reStructuredText][rst] or [markdown][md use] with the appropriate [key set][md
use]. It will be used to generate the project webpage on PyPI and will be
displayed as the project homepage on common code-hosting services, and should be
written for that purpose.Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not a
good idea, although a simple “What’s New” section for the most recent version
may be appropriate.[packaging guide]:https://packaging.python.org[distribution tutorial]:https://packaging.python.org/en/latest/distributing.html[src]:https://github.com/pypa/sampleproject[rst]:http://docutils.sourceforge.net/rst.html[md]:https://tools.ietf.org/html/rfc7764#section-3.5“CommonMark variant”
[md use]:https://packaging.python.org/specifications/core-metadata/#description-content-type-optional
Package: basematicstools
# BaseMatics ToolsThis is a Tools for basematic applications… [Python Packaging User
Guide][packaging guide]’s [Tutorial on Packaging and Distributing
Projects][distribution tutorial].This project does not aim to cover best practices for Python project
development as a whole. For example, it does not provide guidance or tool
recommendations for version control, documentation, or testing.[The source for this project is available here][src].Most of the configuration for a Python project is done in thesetup.pyfile,
an example of which is included in this project. You should edit this file
accordingly to adapt this sample project to your needs.This is the README file for the project.The file should use UTF-8 encoding and can be written using
[reStructuredText][rst] or [markdown][md use] with the appropriate [key set][md
use]. It will be used to generate the project webpage on PyPI and will be
displayed as the project homepage on common code-hosting services, and should be
written for that purpose.Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not a
good idea, although a simple “What’s New” section for the most recent version
may be appropriate.[packaging guide]:https://packaging.python.org[distribution tutorial]:https://packaging.python.org/en/latest/distributing.html[src]:https://github.com/pypa/sampleproject[rst]:http://docutils.sourceforge.net/rst.html[md]:https://tools.ietf.org/html/rfc7764#section-3.5“CommonMark variant”
[md use]:https://packaging.python.org/specifications/core-metadata/#description-content-type-optional
Package: baseMEOW
baseMEOWbaseMEOW is an encoder/decoder that can store binary as a string of characters that spell out "meow" in some way, similar tobase64.Installation# requires Python 3.6+pipinstallbaseMEOWUsageEncoding$echo'hello'|baseMEOW
MeEeeOoWmEeooWwmmEeowwwWw

$echo'im a kitty'|baseMEOW
MeEeOwWMeeEEEoOOwwWWWmMmeOoOwMEooWMeeOWwMMMmM

$ddif=/dev/urandombs=1count=30|baseMEOW30+0recordsin30+0recordsout30bytestransferredin0.000061secs(491520bytes/sec)MMmeEOOowMEOWMMmEOowMEeEeEOWwwmeOOOooWmMmMMMeeeowwWmMMeEEOOWWWmmEOoOowwmmeoOWMmMmeEooWMEEeoWwmeOoOoOWWwWWmeEEoOOwWmmeoOwWDecoding$echo'MeEeeOoWmEeooWwmmEeowwwWw'|baseMEOW--decode
hello
$echo'MeEeOwWMeeEEEoOOwwWWWmMmeOoOwMEooWMeeOWwMMMmM'|baseMEOW--decode
imakitty
$# non UTF-8 data is printed as hex$echo'MMmeEOOowMEOWMMmEOowMEeEeEOWwwmeOOOooWmMmMMMeeeowwWmMMeEEOOWWWmmEOoOowwmmeoOWMmMmeEooWMEEeoWwmeOoOoOWWwWWmeEEoOOwWmmeoOwW'|baseMEOW--decode
2ecb7fc9edeabe3d085a810f2618cc11eaccfbeae47cb6f6ab28786193e6BenchmarksSeebenchmark.pytest casebase64 runtime (ms)baseMEOW runtime (ms)base64 size (bytes)baseMEOW size (bytes)10 characters11.06202.6917421000 characters12.05168.231337400210000 characters11.57159.9213337400021000000 characters34.742500.4513333374000002
Package: basemigrator
Base MigratorLiquibase's almost compatible tool that works very similary, but just using only Python code.InstallationTo use at a MySQL database:$ pip install basemigrator[mysql]To use at a PostgreSQL database:$ pip install basemigrator[postgresql]UsageThere's basicly two rules to use this tool:The changelog file MUST in the same folder as the migrationsThe changelog file MUST follow the expected format specified in the documentationThe migration SQL file MUST have a set of metadata to be applied properlyAbout the first rule, it's simple, follow this folder structure and you will be fine:migrations/
├── changelog.xml
├── Table1
│   └── Table1-createtable.sql
└── Table2
    └── Table2-createtable.sqlThe second rule applies for the changelog file format, which depending on her extension, MUST be one of these two:XML<?xml version="1.0" encoding="UTF-8"?><databaseChangeLog><includefile="Table1/Table1-createtable.sql"relativeToChangelogFile="true"/><includefile="Table2/Table2-createtable.sql"relativeToChangelogFile="dev, prod"/></databaseChangeLog>YAML-file:Table1/Table1-createtable.sql-file:Table2/Table2-createtable.sqlcontext:dev, prodThe third rule specifies that the migration must have a set of metadata, which are:--liquibase formatted sql
--changeset <author>:<migration-id>

CREATE TABLE Table1();The configuration object passed as a parameter for the function that will execute the migrations should have a field namedconfigthat at least
implements the__get__()method and have the following key-values:classApp:def__init__(self):self.config={'DB_USER':'user',# the database user'DB_PASSWORD':'password',# the database password'DB_HOST':'localhost',# the database host'DB_DATABASE':'foo'# the database name}To call themigrate()function, three parameters must be given, they are:frombasemigratorimportmigratemigrate(app=app,# the app configuration objectchangelog='/path/to/migrations',# the full path of the migrations foldercontext='dev'# the context which the migrations will be applied)Supported databasesMySQLPostgreSQLPostgreSQLCurrently, procedures create statements are not supported.TODOCI/CDcode lintingpublish package to pypiContributing sectiontests/
Package: base-model-guiosoft
PY BASE MODELModel data validatorExamplesModel with primitive type attributesfrombase_model.base_modelimportBaseModelclassPrimitiveFieldsModel(BaseModel):id:intname:stractive:boolsize:floatModel with time type attributesfromdatetimeimportdatetime,date,timefrombase_model.base_modelimportBaseModelclassTimeFieldsModel(BaseModel):birthday:dateregister:datetimealarm:timeModel with list type attributesfromtypingimportListfrombase_model.base_modelimportBaseModelclassListFieldsModel(BaseModel):names:List[str]ages:List[int]enables:List[bool]
Package: basen-encoder
BaseNCustom encoder that encodes any binary data to given alphabet.RequirementsPython 3.8 and above. No additional dependencies.Installationpip install basen-encoderUsageNumbersEncode a number to the string and backimportstringimportbasenALPHABET=string.ascii_letters+string.digitsforiinrange(1000,2000,9):encoded=basen.int2base(i,ALPHABET)decoded=basen.base2int(encoded,ALPHABET)print(i,encoded,decoded)Output:1000 qi 1000
1009 qr 1009
1018 qA 1018
1027 qJ 1027
...Huge numbersEven huge numbers can be encoded as well.importstringimportbasenALPHABET=string.ascii_letters+string.digitsNUM=10**100encoded=basen.int2base(i,ALPHABET)decoded=basen.base2int(encoded,ALPHABET)print(NUM)print(encoded)print(decoded)Output:10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Am851IcwtXApqVErDmkjfH9ikry1v4YsyaP4zUrrmM8H8j83wfxbV02K
10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Encode a binaryEncode a binary data to printable text like base64 but with an arbitrary alphabet.importstringimportbasenALPHABET=string.ascii_lettersDATA="Some binary data..."encoder=basen.BaseN(string.ascii_letters,3)encoded=encoder.encode(DATA)decoded=encoder.decode(encoded)print(DATA)print(encoded)print(decoded)Output:Some binary data...
aMUkfaVgYAaXhpLbbsxuaUOUCaTprkavVgx==
bytearray(b'Some binary data...')
Package: basenet
basenetClasses wrapping basicpytorchfunctionality.Train for an epochEval for an epochPredictLearning rate schedulesInstallationconda create -n basenet4_env python=3.6 pip -y
source activate basenet4_env

pip install -r requirements.txt
conda install -y pytorch torchvision cuda90 -c pytorch
pip install -e .Examplescd examples/cifar
./run.sh
Package: baseobjects
FeaturesThis package contains useful base objects meant for inheritance and helper functions.bases: Low level base classes.cachingtools: Objects and decorators for local caching.collections: Objects for storing other objects.composition: Objects for creating compositions style objects.dataclasses: Objects for storing information efficiently.functions: Objects for creating function and method objects.metaclasses: Base metaclasses.objects: Uncategorized base objects.operations: An assortment functions for doing specific.typing: Objects to be used when adding typing to python code.versioning: Objects for tracking versions.wrappers: Objects for wrapping other objects.RequirementsPython 3.10 or laterbidictclickInstallationYou can installbaseobjectsviapipfromPyPI:$pipinstallbaseobjectsUsagePlease see theCommand-line Referencefor details.ContributingContributions are very welcome.
To learn more, see theContributor Guide.LicenseDistributed under the terms of theMIT license,baseobjectsis free and open source software.IssuesIf you encounter any problems,
pleasefile an issuealong with a detailed description.CreditsThis project was generated from@cjolowicz’sHypermodern Python Cookiecuttertemplate.
Package: base-ouro
Relatório do vínculo de todos os alunos e disciplinas.Recebe como entrada os seguintes relatórios extraídos do sistema Prime:Relatório de Alunos / Pais exportação;Relatório de Disciplinas (Consulta SQL);Relatório de Carga Horária por turma / disciplina.Utilizado diariamente durante o período de Ajuste Acadêmico
Package: basepackage
Hi!
This package can be used to shorten some commands from tkinter and colorama.
As so,import basepackage.moduleUse:
-basepackage.module.pa(arg1: f for fore, b for back, s for style, colors first characters each, but k for black and l for blue. d for dim, h for bright and n for normal, c or r or clear or reset to reset all style after printing the word. The word in arg2 will be printed)
-basepackage.module.p(arg1: --- to reset style and to mark text behind, without --- only print text and do not reset.)Use:
-basepackage.module.geninf(): to get sys, node, release, version, machine, processor
-basepackage.module.bt(): to get bt.year, bt.month, bt.day, bt.hour, bt.minute, bt.second
-basepackage.module.cpucores(): to get pcores and lcores
-basepackage.module.cpufreq(): to get maxfreq, minfreq, curfreq
-basepackage.module.cpuusage(): to get cpuusge
-basepackage.module.memory(): to get totmem,avamem,usdmem
-basepackage.module.swap(): to get totswap, avaswap, usdswapUse:
basepackage.module.error/help/info/askokcancel/askyesno/askyesnocancel/askretrycancel/askquestion(name, text)
to get answer [short for tkinter messagebox]Use:
basepackage.module.ptest(number to test if primenumber or not)
to get n for not a primenumber and p for primenumberUse:
basepackage.module.rstrng(lenght)
to get random string with digits, special characters and lettersThis package was written on Linux Debian 10.2 with use of the GNOME Terminal, python 3.7.4 64-bit, base anaconda, and Visual Studio Code.
Package: basepair
Python client for BasepairPython bindings for Basepair's API and command line interface (CLI).Using MFANote: It is advisable to use MFA for increased security and best practicesAfter you have been added to the list of collaborators, you can verify if MFA has been activated for you by visitingcollaboration pageHow to build and push to pypi:pythonsetup.pysdistbdist_wheel# This will create two files in a newly created dist directory, a source archive and a wheel:twineuploaddist/*# To upload it to PypiUploadingdistributionstohttps://upload.pypi.org/legacy/
Enteryourusername:
Enteryourpassword:Note:usernamemust be__token__(not your pypi username)passwordis the token. You may generate the token ->token creation page.That is it!Below is a successful execution sample:Uploading distributions to https://upload.pypi.org/legacy/
Enter your username: __token__
Enter your password:
Uploading basepair-2.0.7-py3-none-any.whl
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 51.0/51.0 kB • 00:00 • 36.3 MB/s
Uploading basepair-2.0.7.tar.gz
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 37.4/37.4 kB • 00:00 • 47.2 MB/s

View at:
https://pypi.org/project/basepair/2.0.7/
Package: baseplate
baseplate.pyDocumentationContribution GuidelinesIt's much easier to manage a bunch of services when they all have the same
shape: the way they're developed, the way they interact with the infrastructure
they run on, and the way they interact with each other. Baseplate is reddit's
specification for the common shape of our services. This library, Baseplate.py,
is the Python implementation of that specification.Baseplate.py glues together tooling for interacting with the reddit backend
ecosystem and spackles over things that are missing. It integrates with Apache
Thrift, Pyramid, and client libraries for many systems to transparently make
your applications observable.Baseplate applications transparently get:Timing and request rate metrics using statsdDistributed tracing with ZipkinError reporting and aggregation with SentryAnd can take advantage of:Integration with commonly used clients like: Thrift, SQLAlchemy,
cassandra-driver, pymemcache, redis-py, and KombuSecrets securely pulled from VaultAnd many other things!pre-commitDocumentationThis repo comes with pre-commit hooks that let you (on a voluntary basis)
enable pre-commit and/or pre-push hooks.Configuration can be found at the root of the directory in.pre-commit-config.yaml. On its own, the configuration file doesn't do
anything. You either need torun the hooks manuallyorinstall themso that they run
automatically on every commit or push.Currently, we run themake fmttarget on commit andmake lint/pytestactions on push.Specific hooks can betemporarily disabled.You can install hooks only for a specific step (i.e.pre-push).Testing in SnoodevYou can upgrade any service to use in development Baseplate code in Snoodev by
editing the requirements file for the service you would like to use for testing.
Update the the Baseplate requirement to pull from Github instead, like this:diff --git a/requirements.txt b/requirements.txt
index aef8ad8..d32a078 100644
--- a/requirements.txt
+++ b/requirements.txt
-baseplate==2.5.7
+git+https://github.com/reddit/baseplate.py@<ref>#egg=baseplateIn this case the ref can be either a commit hash or a branch name. After making
this update you can check if the service works in Snoodev.WarningNever deploy this change to production. Production should always use a Baseplate
semantic version that has been tagged, and released.
Package: baseport
BaseportBaseport is a small CLI tool to export your Basecamp to-dos into a CSV file. We
considered migrating to Jira, and I needed a way to pull all our Basecamp to-dos
into it, so I've written a quick script and thought I'd share it.Installpip install baseportUsage$ baseport --help
Usage: baseport [OPTIONS] COMMAND [ARGS]...

  Baseport exports Basecamp 3 to-do lists to CSVs.

Options:
  --help  Show this message and exit.

Commands:
  projects  Project operations
  todos     To-Do lists operations

$ baseport todos --help
Usage: baseport todos [OPTIONS] COMMAND [ARGS]...

  To-Do lists operations

Options:
  --help  Show this message and exit.

Commands:
  export  Export all todos in one or all lists into a CSV file
  ls      List all available to-do lists in a project
  show    List all todos in one or all lists in a projectTo export all of the to-dos in a single project, you'll use something like this:baseport todos export -p PROJECT_ID -o todos.csvAuthenticationBaseport usesbasecampy3to talk to
Basecamp API. You'll need a.conffile with your OAuth app client_id and
secret, and OAuth token. Luckily, you can just runbc3 configureand it'll
guide you through the setup proces.Formatting and cleaning your CSVWe needed to do a bit of a company-specific cleanup (given that I needed to
import to-dos to Jira, and clean up our email addresses), so Baseport has
formatter support. You can implement your own formatter and add it to_format_todos()function, and then just pass it in the terminal with--formatteroption.ContributingFeel free to open a PR with additional formatters or documentation on how to usebaseportfor other platform-specific exports.If you found an issue, please do file it on this repo. I'll do my best to help
you out.Baseport is not going to be actively maintained or developed, it's a one-off
quick tool I needed for myself, and it did it's job.
Package: basepy
basepyBasic library for python 3.6+, includes:config loaderstructure loggerprogram metrics (statsd)exception logger (via sentry)datastructures for asynciologVery simple and powerful log system, support structure log. It's not depends on python builtinloggingmodule.importasynciofrombasepy.asynclogimportloggerlogger.add("stdout")asyncdefmain():awaitlogger.info("hello")awaitlogger.info("stuct",a=1,b=2,hello='world')asyncio.run(main())And the code will generated.[2020-02-01 11:42:07 +0800] [local.72267] [INFO] [hello]
[2020-02-01 11:42:07 +0800] [local.72267] [INFO] [stuct] [a = 1] [b = 2] [hello = "world"]configConfig module is easy and powerful settings configuration with following features.keep secrets related in sperate file.secrets.tomlkeep local config in sperate filesettings.local.tomlor.secrets.local.toml, the local settings will override the settings for the same key.So, config files should looks likeapplication
├── .secrets.local.toml
├── .secrets.toml
├── settings.local.toml
└── settings.tomlThe.secrets.tomlshould contains several keys, likesigning_secret="local_a"access_token="local_b"To access secrets in program, just usesettings.secretsfrombasepy.configimportsettingsprint(settings.secrets.signing_secret)# will print "local_a"Thesettings.tomlcan contains very complex setting, for example[log]handlers=["stdout","local_fluent"][log.stdout]handler_type="stdout"level="debug"[log.local_fluent]handler_type="fluent"host="127.0.0.1"port=24224tag="basepy"level="info"To access normal setting, just usesettings.keyfrom basepy.config import setting
print(setting.log.handlers)morePlease refer the docs directory.
Package: baseq
# baseqs ToolsThis is a Tools for baseq applications… [Python Packaging User
Guide][packaging guide]’s [Tutorial on Packaging and Distributing
Projects][distribution tutorial].This project does not aim to cover best practices for Python project
development as a whole. For example, it does not provide guidance or tool
recommendations for version control, documentation, or testing.[The source for this project is available here][src].Most of the configuration for a Python project is done in thesetup.pyfile,
an example of which is included in this project. You should edit this file
accordingly to adapt this sample project to your needs.This is the README file for the project.The file should use UTF-8 encoding and can be written using
[reStructuredText][rst] or [markdown][md use] with the appropriate [key set][md
use]. It will be used to generate the project webpage on PyPI and will be
displayed as the project homepage on common code-hosting services, and should be
written for that purpose.Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not a
good idea, although a simple “What’s New” section for the most recent version
may be appropriate.[packaging guide]:https://packaging.python.org[distribution tutorial]:https://packaging.python.org/en/latest/distributing.html[src]:https://github.com/pypa/sampleproject[rst]:http://docutils.sourceforge.net/rst.html[md]:https://tools.ietf.org/html/rfc7764#section-3.5“CommonMark variant”
[md use]:https://packaging.python.org/specifications/core-metadata/#description-content-type-optional
Package: baseq-drops
# baseqs ToolsThis is a Tools for baseq applications… [Python Packaging User
Guide][packaging guide]’s [Tutorial on Packaging and Distributing
Projects][distribution tutorial].This project does not aim to cover best practices for Python project
development as a whole. For example, it does not provide guidance or tool
recommendations for version control, documentation, or testing.[The source for this project is available here][src].Most of the configuration for a Python project is done in thesetup.pyfile,
an example of which is included in this project. You should edit this file
accordingly to adapt this sample project to your needs.This is the README file for the project.The file should use UTF-8 encoding and can be written using
[reStructuredText][rst] or [markdown][md use] with the appropriate [key set][md
use]. It will be used to generate the project webpage on PyPI and will be
displayed as the project homepage on common code-hosting services, and should be
written for that purpose.Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not a
good idea, although a simple “What’s New” section for the most recent version
may be appropriate.[packaging guide]:https://packaging.python.org[distribution tutorial]:https://packaging.python.org/en/latest/distributing.html[src]:https://github.com/pypa/sampleproject[rst]:http://docutils.sourceforge.net/rst.html[md]:https://tools.ietf.org/html/rfc7764#section-3.5“CommonMark variant”
[md use]:https://packaging.python.org/specifications/core-metadata/#description-content-type-optional