Saravanan666/pypi-org huggingface dataset:
Package: settings-vial
Settings VialPython settings for cloud environmentsSettings Vial is a Python package providing an abstraction to read settings from environment variables. Such settings are then available as regular
Python variables, making it easily integrated with configuration mechanisms provided by framworks likeDjangoor others.This package usespkgsettings, so it can be used in configuration chains.On demand setting overrides (dynamic settings), with subtrees of alternative configurations, are also possible.Usage$exportMY_APP_TEST_VAR=42>>>fromsettings_vialimportSettings>>>settings=Settings(env_prefix="MY_APP_")>>>settings.load_env()>>>settings.TEST_VAR42FeaturesLoads prefixed environment variables (json encoded)Dynamic settings support (loads keys from callable instead)Installation$pipinstallsettings_vialRunning tests$maketestContributingIf you'd like to contribute, please follow this workflow:Fork this repositoryClone your forkCreate and test your changesCreate a pull-requestWait for review and approval from the repository collaboratorsContributions are always welcome.SupportIf you need help or have bug reports, please file an issue in ourIssue Tracker.VersioningThis project uses SemVer 2 for versioning. For the versions available, see the tags on this repository.
Package: settipy
settipysettings should be simple, and with settipy it is.settings parses command line and environment variables on one line.
And makes it available throughout the code base. Making using settings in your project as boring and unimportant as it should be.
settings vars is as simple as:settipy.set("FOO","default value","help text")getting vars out has the same level of complexity as setting the value.settipy["FOO"]FeaturesSimple to usesupports command line and environment variablesSupport for types: str, int, bool, list, dictSingleton, makes it easy to use in program anywhere in the code-baseSupports help text with --helpEase of use in any environment examples: linux, docker, k8Force program to be run with env or cli vars.Exampleexample of how to use. More can be found in theexample_projectsettipy.set("FOO","default value","handy help text")settipy.parse()print("foo = ",settipy["FOO"])The above go will produce program that can be used as follows.
get handy help text set in the above example on the same line.
This can get very handy when the project grows and is used in different environments$pythonexample.py--helpUsageofexample.py:-FOOstringhandyhelptext(default"default value")When no value is given, default value is used$pythonexample.pyfoo=defaultvalueRunning the binary with command line input$pythonexample.py-FOObarfoo=barRunning the binary with environment variable$FOO=ok;pythonexample.pyfoo=okOrder of preferencevariables are set with preference
variables on the command line will have highest preference.
This because while testing you might want to override environment
The priority order is as followsCommand line inputEnvironment variablesDefault valuesTypessettipy supports different types. It's possible to use the method "get".
But to be more clear to the reader of the code you can add the type e.g "get_bool".//stringsettipy.set("FOO","default","help text")settipy["FOO"]//integersettipy.set_int("FOO",42,"help text")settipy["FOO"]//booleansettipy.set_bool("FOO",True,"help text")settipy["FOO"]//listsettipy.set_list("FOO",[1,2,3],"help text",sep=".")settipy["FOO"]dic={"foo":["bar",],"foo1":["bar1","bar2"]}settipy.set_dict("foodict",dic,"dict with lists",item_sep=";",key_sep=";",sep=",")settipy["foodict"]Var Should be setsettipy supports different types.//stringsettipy.set("foshure",True,"handy message",should=True)flag: foshure handy message: should be setPrint vars before startupEither run the program with--settipy-verboseas cli argument orsettipy.parse(verbose=True)Install$pipinstallsettipyFuture featuresAdd support for passwords. Password can be stored as hashes. With salt and pepper. Pepper can be stored in envirnoment and the salt given
at the cli. This will allow for safer storing of passwords. Passwords are then just hashes in config. At runtime at the parse fase settipy will
use the salt and pepper to decrypt the password. Since this will properly use external package the major version upgrade is needed. 1.0 will be requirement free.
and 2.0 will start to use packages.Add TypingUse loggingLicenseMIT
Package: settlesdk
Settle SDKThe Settle SDK abstracts using the price feed and settle API by wrapping authentication in a function.DocumentationSupport channelpip install settlesdkVersions0.0.4v Fixed GUID from Token
0.0.7v Fixed GUID to UsernameHow it worksInstead of authenticating and running requests yourself, use the settle object to run api functions.For examplefrom settlesdk import PriceList
pricelist = PriceList()
coins = pricelist.ticker({'id': 1})Important - AuthenticationYou need to register an app in settle in order to use the API. Head over tohttps://settle.finance/app/developer-toolsand join our developer program.Set an app name and grab the automatically generated API keys. Update your .env file in your projects root so that SETTLE_API_KEY and SETTLE_API_SECRET reflect your keys. If your app doesn't use environment variables yet, you will need to setup a loader likedotenv.SETTLE_API_KEY    = "API KEY HERE"
SETTLE_API_SECRET = "API SECRET HERE"You can now access the Settle SDK!Testing user specific endpointsYou can access the price feed API, but to access a users portfolio they need to install your app and opt into providing their data to you.In your developer tools,https://settle.finance/app/developer-tools, select "portfolio" in data access permissions and click the install button to try opting into your app before it's available in the app store.API referenceUser specific appsWhen your app or chat plugin is loaded inside of settle, we will pass a user_id get param (?user_id) along with the app mode (?mode).Exchange token for a user idfrom settlesdk import User
user = User()
user.exchangeTokenForGuid({'token': token})ExamplesReturn ticker information about Bitcoinfrom settlesdk import PriceFeed
pricefeed = PriceFeed()
pricefeed.ticker({'token': token})Convert a GUID to a usernamefrom settlesdk import User
user = User()
user.guid_to_username({'token': token})Send an custom hub eventfrom settlesdk import Chat
chat = Chat()
chat.sendEvent({ chatId, message })Send a notification to a userfrom settlesdk import App
app = App()
app.send_notification({guid: guid})Return a users holdings with a list of trades for each assetfrom settlesdk import Portfolio
portfolio = Portfolio()
portfolio.HoldingsWithTrades({ 'guid': user_id })Return a list of users who installed my appfrom settlesdk import App
app = App()
app.users()Send Notification to users with installed appfrom settlesdk import App
app = App()
users = app.users()
for user in users:
    app.send_notification({'guid': user.guid})Return Requests response with datafrom settlesdk import App
app = App()
users, response = app.user(include_response=True)
print(response.status_code)
Package: settngs
SettngsThis library is an attempt to merge reading flags/options from the commandline (argparse) and settings from a file (json).It is a modified argparse inspired by howflake8loads their settings. Note that this does not attempt to be a drop-in replacement for argparse.Install with pippip install settngsA trivial example is included at the bottom of settngs.py with the output below (using bash). For a more complete example seeComicTagger.$python-msettngsHello world$python-msettngs--hellolordwelchHello lordwelch$python-msettngs--hellolordwelch-sHello lordwelchSuccessfully saved settings to settings.json$python-msettngsHello lordwelch$python-msettngs-vHello lordwelchmerged_namespace.values.Example_Group__verbose=True$python-msettngs-v-sHello lordwelchSuccessfully saved settings to settings.jsonmerged_namespace.values.Example_Group__verbose=True$python-msettngsHello lordwelchmerged_namespace.values.Example_Group__verbose=True$cat>settings.json<<EOF{"example": {"hello": "lordwelch","verbose": true},"persistent": {"test": false,"hello": "world"}}EOF$python-msettngs--no-verboseHello lordwelch$python-msettngs--no-verbose-sHello lordwelchSuccessfully saved settings to settings.json$python-msettngs--helloworld--no-verbose-sHello worldSuccessfully saved settings to settings.json$python-msettngsHello worldsettngs.json at the end:{"Example Group":{"hello":"world","verbose":false},"persistent":false,"hello":"world"}What happened to the 'i'?PyPi wouldn't let me use 'settings'
Package: setton
settonMinhas funções, classes e constantes que podem ser extremamente úteis.
Algumas foram feitas somente para treino.Lista:Funções: 
	-> jogos_de_sorte.py
		+ pedra_papel_tesoura()
		+ par_impar()
		+ dado(lados)
	-> matematica.py
		+ primo(numero)
		+ primos_ate(numero)
		+ maior_primo_ate(numero)
		+ somatoria(inicio: int, fim: int, passo: int) -> float
		+ somatoria(inicio: int, fim: int) -> float
		+ somatoria(fim: int) -> float
		+ gera_funcao_quadratica(a: float, b: float, c: float) -> Callable[[float], float]
		+ resolve_funcao_quadratica(a: float, b: float, c: float) -> str
		+ limite(maximo: float, minimo: float, valor: float) -> float
		+ soma_pg(termo_1: float, razao: float, numero_de_termos: int) -> float
		+ simplify_polynomial(poly: str)
	-> music.py
		+ coffin_dance()
		+ toca_mp3(caminho)
		+ toca_musicas_mp3()
		+ do_re_mi_fa()
	-> Pygame/others.py
		+ grafico_de_linha(surface: pg.Surface, values: list[int, float], cor
		+ grafico_cheio(surface: pg.Surface, values: list[int, float], cor
	-> tones.py
		+ c(oitava=5, duracao=500)
		+ d(oitava=5, duracao=500)
		+ e(oitava=5, duracao=500)
		+ f(oitava=5, duracao=500)
		+ g(oitava=5, duracao=500)
		+ a(oitava=5, duracao=500)
		+ b(oitava=5, duracao=500)
		+ csh(oitava=5, duracao=500)
		+ dsh(oitava=5, duracao=500)
		+ fsh(oitava=5, duracao=500)
		+ gsh(oitava=5, duracao=500)
		+ ash(oitava=5, duracao=500)
		+ sil(mili=300)
		+ play(*args)

Classes: 
	-> manipulacao_de_arquivos.py
		+ File
	-> matematica.py
		+ Forma2D
		+ Triangulo(Forma2D)
		+ Quadrilatero(Forma2D)
		+ Trapezio(Quadrilatero)
		+ Paralelogramo(Quadrilatero)
		+ Retangulo(Quadrilatero)
		+ Quadrado(Retangulo)
		+ Circulo(Forma2D)
		+ Forma3D
		+ PrismaRetangular(Forma3D)
		+ AlgarismosRomanos
		+ CelsiusFahrenheit
		+ RadianosGraus
	-> Pygame/collisions.py
		+ CollisionDetector
	-> Pygame/hitboxes.py
		+ Rect
		+ Circle
	-> Pygame/__init__.py
		+ DefaultGame
	-> tones.py
		+ Sound

Constantes: 
	-> constantes.py
		+ A_ESPECIAL
		+ E_ESPECIAL
		+ I_ESPECIAL
		+ O_ESPECIAL
		+ U_ESPECIAL
		+ VOGAIS
		+ CONSOANTES
		+ BACKSLASH
		+ CODABLE
		+ MORSE_MINUSCULO
		+ MORSE_MAIUSCULO
		+ MORSE_ESPECIAL
		+ MORSE_COMPLETO
		+ MESES
		+ ADJACENTES_TECLADO
	-> matematica.py
		+ GUGOL
Package: settree
Set-Tree
Extending decision trees to process setsThis is the official repository for the paper: “Trees with Attention for Set Prediction Tasks” (ICML21).
This repository contains a prototypical implementaion of Set-Tree and GBeST (Gradient Boosted Set-Tree) algorithms
The Set-Tree package can be downloaded from PIP: pip install settree
We also supply the code and datasets for reproducing our experimetns under exps folder.In many machine learning applications, each record represents a set of items. A set is an unordered group of items, the number of items may differ between different sets. Problems comprised from sets of items are present in diverse fields, from particle physics and cosmology to statistics and computer graphics. In this work, we present a novel tree-based algorithm for processing sets.Set-Tree model comprised from two components:
Set-compatible split creteria: we specifically support the familly of split creteria defined by the following equation and parametrized by alpha and beta.
Attention-Sets: a mechanism for allplying the split creteria to subsets of the input. The attention-sets are derived forn previous split-creteria and allows the model to learn more complex set-functions.
Package: sett-rs
sett-rs Python bindingsBuilding sett-rs Python bindings requires theRust toolchainandmaturin.DevelopmentBuild and install directly in the current virtual env
(runmaturinin the directory where thisREADME.mdfile is located).maturindevelop--releaseWindows builds require non-default features.maturindevelop--release--no-default-features--features=crypto-cngProductionSee the GitLab CI file for the platform-specific instructions on building
production-ready Python wheels.ExamplesTransfer files over SFTP.cdsett-rs/examples# Set up an sftp server for testing (public key authentication)dockerrun-v${HOME}/.ssh/id_rsa.pub:/home/foo/.ssh/keys/id_rsa.pub:ro-p2220:22-datmoz/sftpfoo::1001::upload# Run speed testpythonspeedtest.py
Package: settus
SettusSettings management using Pydantic Settings with cloud extensions.Settus makes it possible to securely access local and cloud-stored secrets from multiple environments, with pre-defined fallback plans. Supported secrets provider areAzure KeyvaultDatabricks secrets [IN PROGRESS]AWS Secrets ManagerGCP Secrets Manager [IN PROGRESS]HelpSeedocumentationfor more details.InstallationInstall usingpip install laktory[{cloud_provider}]where{cloud_provider}isazure,aws,databricksorgcp.For more installation options,
see theInstallsection in the documentation.A Basic ExampleimportosfromsettusimportBaseSettingsfromsettusimportFieldKEYVAULT_URL="https://o3-kv-settus-dev.vault.azure.net/"AWS_SECRET_NAME="vault"os.environ["MY_ENV"]="my_value"classSettings(BaseSettings):# Value from environment variable "MY_ENV"my_env:str=Field(default="undefined")# Value from the Azure keyvault named `o3-kv-settus-dev` with secret key `my-secret`my_azure_secret:str=Field(default="undefined",alias="my-secret",keyvault_url=KEYVAULT_URL)# Value from the secret named `vault` in AWS secrets manager and having the secret key `my-secret`my_aws_secret:str=Field(default="undefined",alias="my-secret",aws_secret_name=AWS_SECRET_NAME)settings=Settings()print(settings.my_env)#> my_valueprint(settings.my_azure_secret)#> secret_sauceprint(settings.my_aws_secret)#> secret_sauceTo get started with more examples, jump into theQuickstart.Okube CompanyOkube is dedicated to build open source frameworks, thekubes, that empower businesses to build and deploy highly scalable data platforms and AI models. Contributions are more than welcome.
Package: setu
Setu UPI DeepLinks: Python SDKsetuis a Python SDK for accessing Setu’sUPI DeeplinksAPIs. The SDK is designed with ease of access in mind, with native Python class objects for inputs & ouputs and custom exceptions.Getting startedSDK documentation →Full documentation →Product overview →InstallationpipinstallsetuFeaturesFull support for latest UPI Deeplinks APIsNative Python class objects for all inputs & responsesAllows bothJWT&OAuthauthentication mechanismsSANDBOXmode to test integration &PRODUCTIONfor live dataInternal mechanism for OAuth authentication to automatically re-fetch token when current one expires, and retry all failed requests.ExamplesSetupfromsetuimportDeeplinkfromsetu.contractimportRefundRequestItem,SetuAPIExceptiondl=Deeplink(scheme_id="c4f57443-dc1e-428f-8c4e-e5fd531057d2",secret="5b288618-473f-4193-ae1b-8c42f223798e",product_instance_id="861023031961584801",auth_type="OAUTH",mode="SANDBOX",)Generate UPI payment linkbill_amount=100try:link=dl.create_payment_link(amount_value=bill_amount,biller_bill_id="test_transaction_1234",amount_exactness="EXACT",payee_name="Python SDK unittest",transaction_note="unittest transaction",)assertlink.payment_link.upi_id=="refundtest@kaypay"exceptSetuExceptionase:assertFalseGet Payment Link Statustry:link_status=dl.check_payment_status(link.platform_bill_id)assertlink_status.status=="BILL_CREATED"exceptSetuAPIExceptionase:assertFalseTrigger mock payment for UPI payment link (Sandbox only)try:credit_response=dl.trigger_mock_payment(float(bill_amount)/100,link.payment_link.upi_id,link.platform_bill_id)exceptSetuAPIExceptionase:assertFalseMock Settlementtry:dl.trigger_mock_settlement([credit_response.utr])exceptSetuAPIExceptionase:assertFalseExpire bill paymenttry:dl.expire_payment_link(link.platform_bill_id)exceptSetuAPIExceptionase:assertFalseInitiate Refundtry:batch_initiate_refund_response=dl.initiate_batch_refund(refunds=[RefundRequestItem(identifier=link.platform_bill_id,identifierType="BILL_ID",refundType="FULL",),],)assertbatch_initiate_refund_response.refunds[0].status=="Pending"exceptSetuAPIExceptionase:assertFalseGet refund batch statustry:refund_batch_status_response=dl.get_batch_refund_status(batch_initiate_refund_response.batch_id)assertrefund_batch_status_response.refunds[0].bill_id==link.platform_bill_idexceptSetuAPIExceptionase:assertFalseGet individual refund statustry:refund_status_response=dl.get_refund_status(batch_initiate_refund_response.refunds[0].id)assertrefund_status_response.bill_id==link.platform_bill_idexceptSetuAPIExceptionase:assertFalseContributingHave a look through existingIssuesandPull Requeststhat you could help with. If you'd like to request a feature or report a bug, pleasecreate a GitHub Issueusing the template provided.See contribution guide →CreditsThis package was created withCookiecutterand thewaynerv/cookiecutter-pypackageproject template.LicenseMIT. Have at it.
Package: setu-nonebot2
nonebot的色图姬插件本项目是opq-osc/OPQ-SetuBot的色图插件移植的可能有bug...欢迎提issues...详细信息看wiki(还没写...)支持的功能:每个群的配置文件独立可以控制频率可以选择开关R183个API可以自定义开关bot的回复可以自定义演示投食通道
Package: setupapp
# setupapp> a simple demo for Python setup test.### docs> https://packaging.python.org/tutorials/distributing-packages/#uploading-your-project-to-pypi### environment```bash$ pip install docopt```### install```bash$ git clone https://github.com/amlyj/setupapp.git && cd setupapp && python setup.py install```### bash```bash[root@node1 setupapp]# setupappsetup commands:simple demo for python setup.Usage:setupapp -lsetupapp -h | --helpsetupapp -v | --versionsetupapp -msetupapp -P <port>setupapp -H <ip>setupapp [-H <ip>] [-P <port>]Arguments:ip    output ipport  output portOptions:-h --help        帮助-v --version     版本.-l               列表.-m               say hello[root@node1 setupapp]# setupapp -l12345[root@node1 setupapp]#```
Package: setupbox
## OutlineSetupBoxis a useful middleware for
implementing own storage cloud. It has multiple APIs for making the
service based on version control system.What SetupBox usesLibraries and open sources that SetupBox uses are on Wiki page.Visithere.Installation GuideInstallation Guide is on Wiki page.Visithere.Contribution guideSetupBox needs your help. You can confirmcontribution guideon wiki
or just trypull request!Demo versionhttp://fast0.ajou.ac.kr:8080WikiWe have wiki for our productivity and sharing information. Now, only
collaborators can edit wiki. If you want to add some useful information
on wiki, please register issue about that.
Package: setupcfg
Installation$[sudo]pipinstallsetupcfgRelatedclassifiers-generator- classifiers generatorreadme-badges-README.mdbadgesreadme-docstring- generate README.md from python docstringsreadme-generator-README.mdgeneratorsetupcfg-generator-setup.cfggeneratortravis-generator-.travis.ymlgeneratorLinksmetadata, options - setuptools documentationSpecifying valuesreadme42.com
Package: setup-cfg-fmt
setup-cfg-fmtapply a consistent format tosetup.cfgfilesinstallationpipinstallsetup-cfg-fmtas a pre-commit hookSeepre-commitfor instructionsSample.pre-commit-config.yaml:-repo:https://github.com/asottile/setup-cfg-fmtrev:v2.5.0hooks:-id:setup-cfg-fmtcliConsult the help for the latest usage:$setup-cfg-fmt--helpwhat does it do?sets a consistent ordering for attributesFor example,nameandversion(the most important metadata) will always
appear at the top.[metadata]-version = 1.14.4-name = pre_commit+name = pre_commit+version = 1.14.4normalizes dashes to underscores in project namepipwill normalize names to dashesfoo_bar=>foo-barpython setup.py sdistproduces a filename with the name verbatimpip wheel .produces a filename with an underscore-normalized name$# with dashed name$pythonsetup.pysdist&&pipwheel-wdist....$lsdist/|catsetup_cfg_fmt-0.0.0-py2.py3-none-any.whlsetup-cfg-fmt-0.0.0.tar.gz$# with underscore name$pythonsetup.pysdist&&pipwheel-wdist....$lsdist/|catsetup_cfg_fmt-0.0.0-py2.py3-none-any.whlsetup_cfg_fmt-0.0.0.tar.gzThis makes it easier to upload packages to pypi since they end up with the
same filename prefix.[metadata]-name = pre-commit+name = pre_commitnormalizes dashes to underscores in keyssetuptools allows dashed names but does not document them.[metadata]name = pre-commit-long-description = file: README.md+long_description = file: README.mdaddslong_descriptionifREADMEis presentThis will show up on the pypi project page[metadata]name = pre_commitversion = 1.14.5+long_description = file: README.md+long_description_content_type = text/markdownaddslicense_file/license/ license classifier ifLICENSEexists[metadata]name = pre_commitversion = 1.14.5+license = MIT+license_file = LICENSE+classifiers =+    License :: OSI Approved :: MIT Licensesetpython_requiresA few sources are searched for guessingpython_requires:the existingpython_requiressetting itselfenvlistintox.iniif presentpython versionclassifiersthat are already setthe--min-py-versionargumentadds python version classifiersclassifiers are generated based on:thepython_requiressettingthe--max-py-versionargument (currently defaulting to3.11)--include-version-classifiersis specifiedname = pkgversion = 1.0+classifiers =+    Programming Language :: Python :: 3+    Programming Language :: Python :: 3.7+    Programming Language :: Python :: 3.8+    Programming Language :: Python :: 3.9+    Programming Language :: Python :: 3.10+    Programming Language :: Python :: 3.11without--include-version-classifiersonly the major version will be included:name = pkgversion = 1.0+classifiers =+    Programming Language :: Python :: 3sorts classifiers[metadata]name = pre_commitversion = 1.14.5classifiers =-    Programming Language :: Python :: 3-    License :: OSI Approved :: MIT License+    License :: OSI Approved :: MIT License+    Programming Language :: Python :: 3Programming Language :: Python :: 3.6removes empty options in any section[options]-dependency_links =python_requires = >= 3.6.1related projectssetup-py-upgrade: automatically migratesetup.py->setup.cfg
Package: setupcfg-generator
Installation$[sudo]pipinstallsetupcfg-generatorFeatures[metadata]files/environment variablesnamecurrent directory basename or$NAMEclassifiersclassifiers.txt,$CLASSIFIERSdescriptiondescription.txt,$DESCRIPTIONkeywordskeywords.txt,$KEYWORDSlong_descriptionREADME.md/README.rst,$LONG_DESCRIPTIONlong_description_content_typetext/markdowniflong_descriptionis.mdfileversionversion.txt,$VERSIONurl$URL[options]files/environment variablesinstall_requiresrequirements.txtpackagessetuptools.find_packages()result, folders with__init__.pypy_modulespython files in a current directoryscriptsbin/*orscripts/*filesfiles can be in the current directory or any subdirectoryExamplesproject-name.py/
├── bin
|   └── script
├── classifiers.txt
├── description.txt
├── subfolder/keywords.txt
├── requirements.txt
├── module.py
├── package
|   └── __init__.py
├── README.md
├── scripts
|   └── script
├── setup.py
├── subfolder/version.txt$cdpath/to/project-name.py
$exportURL="https://github.com/owner/repo"$python-msetupcfg_generator
$catsetup.cfg[metadata]name=project-nameversion=1.0.0url=https://github.com/owner/repoclassifiers=file:classifiers.txtdescription=file:description.txtlong_description=file:README.mdlong_description_content_type=text/markdownkeywords=key1key2[options]install_requires=req1req2packages=pkgnamepy_modules=modulescripts=bin/scriptscripts/scriptRelatedsetuppy-generator-setup.pygeneratorreadme42.com
Package: setupCLI
setupCLIA command line application for setting up basic environments for projectsInstallationUsing Pip$pipinstallsetupCLIManual$gitclonehttps://github.com/AabhasKrJha/setupCLI$cdsetupCLI$pythonsetup.pyinstallUsage$setupCLIsetupCLI <project name>$setupCLI'project X'