Saravanan666/pypi-org huggingface dataset:
Package: decaf-api-client
DECAF API Client (Python)TODO:Provide a complete README file.DevelopmentCreate a virtual environment, if you did not create one before:python3.9-mvenv/opt/venvs/decaf-client-pythonStart DevelopmentActivate the virtual environment:./opt/venvs/decaf-client-python/bin/activateUpgradepipandsetuptools:pipinstall--upgradepipsetuptoolsInstallpipenv:pipinstallpipenvInstall production and development dependencies:pipenvinstall--devRun tests:pipenvruntoxOpen the codebase in VSCode:code.Build and PublishInstall/upgradetwine:pipinstall--upgradetwineBuild the source distribution:pythonsetup.pysdistbdist_wheelCheck the distribution(s):twinecheckdist/*Upload the distribution:twineupload-sdist/*License and CopyrightsThis software is licensed underThe 3-Clause BSD
License.
Package: decaf-synthetic-data
DECAF (DEbiasing CAusal Fairness)Code Author: Trent Kyono and Boris van BreugelThis repository contains the code used for the "DECAF: Generating Fair Synthetic Data Using Causally-Aware Generative Networks" paper(2021).Installationpipinstall-rrequirements.txt
pipinstall.TestsYou can run the tests usingpipinstall-rrequirements_dev.txt
pipinstall.
pytest-vsxContentsdecaf/DECAF.py- Synthetic data generator class - DECAF.tests/run_example.py- Runs a nonlinear toy DAG example.  The dag structure is stored in thedag_seedvariable.  The edge removal is stored in thebias_dictvariable.  See example usage in this file.ExamplesBase example on toy dag:$cdtests
$pythonrun_example.pyAn example to run with a dataset size of 2000 for 300 epochs:$pythonrun_example.py--datasize2000--epochs300Citing@inproceedings{kyono2021decaf,
	title        = {DECAF: Generating Fair Synthetic Data Using Causally-Aware Generative Networks},
	author       = {van Breugel, Boris and Kyono, Trent and Berrevoets, Jeroen and van der Schaar, Mihaela},
	year         = 2021,
	booktitle    = {Conference on Neural Information Processing Systems(NeurIPS) 2021}
}
Package: decamagwake
DecamagwakeDecamagwake is a Python library that provides PSF photometry on DECAM data using the sextractor and psfex packages. This library is published on PyPI, and it can be installed using pip:pip install decamagwakeInstallation RequirementsBefore installing Decamagwake, you need to have the following packages installed on your system:astropynumpypandassextractorpsfexUsageThe following example shows how to use Decamagwake to perform PSF photometry on a DECAM data set:from decam_lib import decam_processing

# Set up output and data directories
output_dir = 'tests/data_test/workdir'
data_dir = 'tests/data_test'

# Create Decam_pipeline object
pipeline_test = decam_processing.Decam_pipeline(output_dir=output_dir, data_dir=data_dir, config_dir='tests/config')

# Perform PSF photometry
pipeline_test.photometry()

# Make final catalogs
pipeline_test.join_final_catalogs2()

# Delete temporary files
pipeline_test.delete_temp()LicenseThis library is released under the MIT license. See LICENSE for more information.In addition to the pip install method, you can also install Decamagwake by cloning the repository from GitHub. Here are the steps to follow:Clone the repository:git clone https://github.com/fawkez/magwake.gitChange the current working directory to the cloned folder:cd magwakeInstall the library using the setup.py file:python setup.py installThis will install the library and its dependencies.Alternatively, you can install the library from the distribution wheel file using pip:Clone the repository:git clone https://github.com/fawkez/magwake.gitChange the current working directory to the cloned folder:cd magwakeBuild the distribution wheel file:python setup.py sdist bdist_wheelInstall the distribution wheel file using pip:pip install dist/decampipe-0.1-py3-none-any.whlThis will install the library and its dependencies.ContributingContributions to this library are welcome. Please see CONTRIBUTING.md for more information.ContactIf you have any questions or comments about this library, please contact us atdecamagwake@gmail.com
Package: decamelize
🐍decamelize: Convert a camelized string into `snake_case`Install$ pip install decamelizeWhy?TurnCamelCasetonon_camel_caseClean and focusedActively maintainedUsageimportdecamelizeprint(decamelize.convert("CamelCase"))# Eg: CamelCase → camel_caseTeamCarlos AbrahamRelated🐫 ToCamelCase:camelize stringturn intocamel caseLicenseMITLicense ©Carlos Abraham
Package: decancer-py
decancer_pyPython bindings fordecancer.InstallationYou can get started withdecancer_pyby installing from PyPI:pipinstall-Udecancer-pyUsagedecancer_pycan be used to turn sketchy text strings into their more
basic counterparts.A single function and class are exported fromdecancer_py:CuredString- A wrapper around a string object that can be used for comparisons.parse- Parse a jank string into a normal string wrapped in aCuredStringobject.fromdecancer_pyimportparse,CuredStringparsed:CuredString=parse("𝔂ＥＥ𝓣")assert"ee"inparsedassertparsed=="yeet"assertparsed.contains("ee")assertparsed.ends_with("et")assertparsed.starts_with("ye")# Implicit string conversionprint(parsed)# yeetLicensedecancer_pyis licensed under theMIT License.
Package: dec-ansi-parser
dec_ansi_parserPure-python terminal control sequence parser, based onPaul Williams' DEC-compatible parser.Changes from Williams' parser:Handles subparametersAllows UTF-8 encoded strings (treated as normal text)Ignores the backslash (0x5C) in a 7-bit string terminator when exiting an OSC or DCS control stringAny invalid UTF-8 sequences are parsed as individual raw bytes.Installation$pipinstalldec_ansi_parserUsageTODOContributingInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.Licensedec_ansi_parserwas created by yut23. It is licensed under the terms of the BSD 3-Clause license.Creditsdec_ansi_parserwas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.
Package: decanter
[![Build Status](https://travis-ci.org/gengo/decanter.png?branch=master)](https://travis-ci.org/gengo/decanter)
decanter
========A web framework based on [bottle](http://bottlepy.org/docs/stable/), see [requirements.txt](https://github.com/gengo/decanter/blob/master/install/requirements.txt) for a list of requirements. On Ubuntu, you will also need to have these extra packages installed:sudo apt-get install python-dev libevent-dev### To run it
./decanter.py -h hostname -p port -c config.module start|stop|restart|status|runserverconfig.modulemust match the location of a module containing decanter required configuration items, i.e. config/devel.py but without the .py extension.### Overview
Decanter does not particularly favor convention over configuration, it uses a combination of both, and it adds structure to bottle framework.For example the app directory path is set in the configuration file, while the structure of the directory uses the following convention:appbundleshomecontrollersviewsadmincontrollersviewsconfigenvironmentdevel.pylive.pysettings.pyviews#### Bundles, controllers and the url path
In the controllers directory there are modules with bottle style routes. Default bundle and default controller are configured in the configuration module (i.e. config.devel.py), so the single forward slash path “/” will load the default controller in the default bundle.
While a path such as “/admin/home/” will load the controller home.py inside the controllers directory in the admin bundle.#### Decanter routes
Decanter routes override [bottle routes](http://bottlepy.org/docs/stable/tutorial.html#request-routing), (see lib/decorator.py) and they fix a couple of things:“apply” route parameter takes the string name of the plugin i.e. “jinja2” or “json” or a list of strings rather then an object or list of objects like in bottlethe following two paths are the same “/home/” and “/home” in both the browser and decanter route.#### Bundles, controllers and views
Decanter overrides bottle jinja2 plugin. Templates are expected to by found in the “views” directory of each bundle, and if not found there the “bundle/views” directory is searched.Templates name should, by convention, follow the bundle/controller/action name, i.e. if the “index” action in the “home” controller within the “admin” bundle is executed then by default a jinja2 template with the following name: “admin/home/index.html” will be loaded from the admin/views bundle directory if present, otherwise the “bundles/views” directory will be searched, if the template is not found the process is repeated searching for home/index.html in the “admin/views/” directory first the again the “bundles/views/”.
Package: decanter-ai-core-sdk
MoBagel Decanter AI Core SDKDecanter AI is a powerful AutoML tool which enables everyone to build ML models and make predictions without data science background. With Decanter AI Core SDK, you can integrate Decanter AI into your application more easily with Python.It supports actions such as data uploading, model training, and prediction to run in a more efficient way and access results more easily. You can also use Decanter AI Core SDK in Jupyter Notebook for better visualization.To know more about Decanter AI and how you can be benefited with AutoML, visitMoBagel websiteand contact us to try it out!System Requirementpython3.7InstallInstall and update using pip:pipinstalldecanter-ai-core-sdkBasic Example: Upload Datafromdecanterimportcorecore.enable_default_logger()client=core.CoreClient(username=???,password=???,host=???)train_file=open(train_file_path,'rb')train_data=client.upload(file=train_file,name="train")# in jupyter notebook just run the block# no need to call context.run()client.run()train_data.show()$python-mexample.file15:50:09[INFO][Context]noeventlooptoclose15:50:09[INFO][Context]connecthealthy:)ProgressUploadTask_train:55%|█████████████████████████████████████████Example Dataset Pathexamples/data/- store the general datasetexamples/data/ts_data- store the time series datasetExample CodeGeneral DataPython Script:example.pyJupyter:jupyter_example.ipynbTime Series DataPython Script:auto_time_series_example.pyNote:
Since Jupyter already have an event loop (asyncio), SDK will just use the current event loop. See more inhere.
More details about asyncio inlearn asyncioimportasyncioloop=asyncio.get_running_loop()loop.is_running()Tutorial for Jupyter Notebookfirst you need to install jupyter lab:pip install jupyterlabthis is required for progress bar to display correctly:pip install ipywidgets(optional, conda venv for jupyter notebook)conda install nb_condajupyter labthis should open your browser to jupyter lab page.If you want to learn how to build ML models with Decanter AI, visit ourjupyter_example.ipynbfor step by step tutorial.If you need to handle running tasks well, refer to ourjupyter_jobs_handle_example.ipynb.Development Guide and FlowIf you are curious about why Decanter AI Core SDK does certain things the way it does and not differently, visit ourDevelopment GuideDocumentationTo understand how we design Decanter AI Core SDK,doc/contains the complete documentation, including the design system, the use of each API, and the required dependencies to install. Refer to ourdocument pageto navigate the complete information.ContributingFor guidance on setting up a development environment and how to make a contribution to Decanter AI Core SDK, see thecontributing guidelines.LinksFor more details on design, guidance on setting up a development environment, and SDK usage.Decanter AI Introduction:https://mobagel.com/product/Decanter AI SDK Introduction:https://mobagel.github.io/decanter-ai-core-sdk/Code:https://github.com/MoBagel/decanter-ai-core-sdkInstallation:https://mobagel.github.io/decanter-ai-core-sdk/user/install.htmlAPI interface:https://mobagel.github.io/decanter-ai-core-sdk/api.html
Package: decapitaliza
Decapitalize spanish words.This utility is only for spanish words and contains a spanish dictionary of words with dyacritics.Use Case.This tool is designed to restore the correct spelling of names and surnames collected in the official systems of many Spanish-speaking countries.
Traditionally, words are stored in capital letters and without accents or other non-ASCII characters.
Since this transformation is destructive, it is not easy to obtain the correct spelling of these records.Descriptiondecapitaliza uses a dictionary of terms with Spanish spelling and a simple text analysis mechanism adapted to the processing of proper names and surnames.
It capitalizes words according to common rules for first and last names.
"decapitaliza" includes a command line tool that allows you to perform the following functions:Generate custom dictionaries: import correctly spelled terms from a CSV with correct words. If no external dictionary is specified, a pre-generated dictionary is used. The included dictionary can be extended with additional words.Transforms the words of a text (separated by spaces).Processes a CSV by transforming the indicated columns.Caso de uso.Esta herramienta está diseñada para restaurar la ortografía correcta de los nombres y apellidos recogidos en los sistemas oficiales de muchos países de habla hispana.
Tradicionalmente, las palabras se guardan en mayúsculas y sin tildes ni otros caracteres no ASCII.
Como esta transformación es destructiva, no es sencillo obtener la correcta ortografía de esos registros.Funcionamientodecapitaliza utiliza un diccionariode términos con ortografia del español y un mecanismo simple de análisis de textos adaptado al procesado de nombres propios y apellidos.
Capitaliza las palabras de acuerdo a las reglas comunes para nombres y apellidos.
"decapitaliza" incluye una herramienta para línea de comandos que permite realizar las siguientes funciones:Genera diccionarios a la medida: importa términos con ortografía correcta a partir de un CSV con palabras correctas. Si no se indica un diccionario externo se utiliza un diccionario pregenerado. Se puede ampliar el diccionario incluido con palabras adicionales.Transforma las palabras de un texto (separadas por espacios)Procesa un CSV transformando las columnas que se indiquen.
Package: decapitate-the-spire
Decapitate the SpireA headless clone of Mega Crit'sSlay the Spire.Have you ever wanted to playSlay the Spire, but with no graphics, an inscrutable TUI, and lots of bugs? Probably not. Computers like it, though.Installationpipinstalldecapitate-the-spireUsage exampleTo play in a console:python3-mdecapitate_the_spireIf you want to control the game from your own code, start with a core loop like this:fromdecapitate_the_spireimportgameasdgdefmain():# Also consider dg.SimpleDungeon and dg.MiniDungeon for testing.game=dg.Game(dg.TheSilent,dg.Exordium)is_terminal=Falsewhilenotis_terminal:# You'll be determining the actions; this is a placeholder. See the# wiki for details on the action space.action_0,action_1=(0,0)# This is the core gameplay loop._,is_terminal,_=game.step((action_0,action_1))Current stateThis isvery mucha work in progress. The code is littered with TODOs and bugs. I'm focused on getting Exordium playable with Silent and with full content.CharactersSilentRelicsCardsIroncladDefectWatcherDungeonsMechanics (map, room traversal, etc.)ContentExordiumMonstersEventsShopsThe CityThe BeyondDevelopment setup# If you don't have pipenv, get it.pipinstallpipenv# Clone this repo.# git clone ...# Enter the new repo dir.cddecapitate-the-spire# Start pipenv. It'll pick up the Pipfile in the repo. Notice that you're in a# new shell after this.pipenvshell# Install dev dependencies.pipenvinstall--dev# Run tests to verify.pytestContributingPull requests are very welcome. I'm focused on completing Exordium and gaining confidence in my cloning of the original game. Tests are required when practical.Fork it (https://github.com/jahabrewer/decapitate-the-spire/fork)Create your feature branch (git checkout -b feature/fooBar)Commit your changes (git commit -am 'Add some fooBar')Push to the branch (git push origin feature/fooBar)Create a new Pull RequestMotivationA while back, I was watchingjorbsand got jealous because he plays so well. I knew I could never best his play withmybrain, so I decided to try my hand at creating anagentthat could beat jorbsforme.I opted to use reinforcement learning to create the agent, inspired by its success with, well, everything lately (especiallySC2LE). Reinforcement learning is great in that you don't need to tell the agent how the game works; itlearnsthe game. The problem/tradeoff is that it needs to play the gamea whoooole lotbefore it's smart at all.Initially, I hooked up a reinforcement learning trainer toSlay the Spirevia ForgottenArbiter's very coolCommunicationMod. This worked... but at human speed. It was obvious that I needed a fast, headless version of the game.aaaaaand here we are.CreditsVery big thanks to Mega Crit for allowing me to release this publicly.This package was created with Cookiecutter and thesourcery-ai/python-best-practices-cookiecutterproject template.
Package: decapt
Simple declarative package managementFor Debianish LinuxDeclarative package management means you make a file containing everything you want installed, and the package manager adds/removes to make the system match that.  It's good if you happen to install lots of random programs and forget to remove them until you forgot whether they were important to have installed or not in the first place!Requires: aptitude, sudo, python 3.6+pip install decaptdecapt generateModifydecapt.luxemUpdate your system withdecaptFeaturesManage snap packagesManage manual debian packages
Add an entry like{ name: mypackage, path: ~/debs/mypackage }where there's abuild.shscript inpathwhich creates amypackage.debinpath.LuxemNotesAutoremoveDebian considersinstalled"suggested" and "recommended" for other installed packages to be important, so they won't be autoremoved after being installed once.  If for instance something recommends chrome or firefox, and you remove chrome from your list and add firefox, it won't be removed (by default).  To make these not recommended, create/etc/apt/apt.conf.d/99_norecommendsand add:APT::Install-Recommends "false";
APT::AutoRemove::RecommendsImportant "false";
APT::AutoRemove::SuggestsImportant "false";(source)If you runapt autoremoveyou can confirm what this affects that's currently installed.  You should probably add some to your decapt list (ex:grub-efi-amd64).  You can check why something on that list is currently installed by runningaptitude why PACKAGE-- if it's actually a dependency (not just suggested/recommended) by something else, tryaptitude whyon that something else until you find what package at the head of the chain is set free by this change.Base packagesDecapt generate consults the list of currently manually installed non-base software.  Debian seems to "manually" install a lot of unnecessary packages, so the initially generated list will include both packages and dependencies, where you might only want the package itself?  To convert all manually installed dependencies to auto packages, run:$ sudo apt-mark showmanual | while read line; do if [[ $(apt-cache rdepends --installed $line | wc -l) -ne 2 ]]; then apt-mark auto $line; fi; doneIf you dodecapt generateafter that you should have a smaller list of base-system spam in the list.(TODO: rdepends seems to include suggested/recommended dependencies too, so this might need to be reworked to use a different tool).Friends (not really)Nix- A strict declarative package (and config) manager, and also the basis of Linux distroNixOSGuix- A strict declarative package (and config) manager, and also the basis of Linux distro GuixSDaconfmgr- A declarative Arch-native package and config managerdecpac- I made something similar for Arch
Package: decaptcha
A GUI automation Python module for solving Google reCAPTCHA v2Free software: MIT licenseDocumentation:https://decaptcha.readthedocs.io.InstallationRecommended:Ubuntu/DebianPython 3.6Prerequisites:Google Tesseract OCRGeckodriverScrotYOLOv3 ModelInstalling via pip:Check thedecaptcha package pagefor more information.$(env)>pipinstalldecaptchaOr if you have git installed:$(env)>pipinstall-Ugit+https://github.com/balanceofprobability/decaptcha.gitInstalling from source:$>gitclonehttps://github.com/balanceofprobability/decaptcha.git$(env)>cddecaptcha&&pipinstall-U.UsageQuickstartFor a live demo, open a web browser and visithttps://www.google.com/recaptcha/api2/demo, then run the following code block via a Python script or Python REPL.fromdecaptcha.notarobotimportNotARobotjanet=NotARobot()janet.set_model("yolo.h5")janet.run()CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.
Package: decaptcher
## InstallationUse command:```shellpip install -e git://github.com/lorien/decaptcher#egg=decaptcher```## Usage### Twocaptcha Backend ExampleService website is https://2captcha.com?from=3019071```pythonfrom decaptcher import Servicesolver = Service('twocaptcha', api_key='2captcha.com API HERE')print(solver.process_file('captcha.png'))# orwith open('captcha.png') as inp:print(solver.process(inp.read()))# orwith open('captcha.png') as inp:print(solver.process(inp))# You can pass extra parameters (described in 2captcha documentation)# using task_options arguments:print(solver.process_file('captcha.png', task_options={'regsense': 1,'min_len': 4,}))```### Solving custom captcha type using 2captcha.comDecaptcher library supports any custom captcha supported by 2captcha.com service.Just use `task_options` argument to pass all required parameters.For example, to solve text captcha do:```pythonfrom decaptcher import Servicesolver = Service('twocaptcha', api_key='2captcha.com API HERE')print(solver.process(task_options={'lang': 'en','textcaptcha': 'Name of first day of week',}))```### Getting captcha ID along the solutionTo get catpcha ID pass `verbose=True` to `process` method:```pythonsolver = Service('twocaptcha', api_key='2captcha.com API HERE')print(solver.process_file('captcha.png', verbose=True))````You get result like:```python{"task_id": "captcha ID", "result": "captcha text"}```### Rucaptcha Backend ExampleService website is https://rucaptcha.com?from=3019071```pythonfrom decaptcher import Servicesolver = Service('rucaptcha', api_key='RUCAPTCHA_KEY')print(solver.process_file('captcha.png'))```### Antigate Backend ExampleService website is http://getcaptchasolution.com/ijykrofoxz```pythonfrom decaptcher import Servicesolver = Service('antigate', api_key='ANTIGATE_KEY')print(solver.process_file('captcha.png'))```### Browser Backend ExampleBrowser backend just displays captcha in default browser and wait you enter solution in console.```pythonfrom decaptcher import Servicesolver = Service('browser')print(solver.process_file('captcha.png'))```