Saravanan666/pypi-org huggingface dataset:
Package: dones
## IntroductionThe dones module can be used to mark whether a key is “done” and check whether
a key has been marked “done”.  Keys can also be unmarked, so that they are no
longer “done”.  Also, all keys can be unmarked by clearing the Dones.
Keys are kept in their own namespace to avoid conflicts with other
sets of other keys and to make it easy to implement clearing.Why?  I usedonesto keep track of what I’ve already done.  More
specifically, I run large computations (a few million tasks) on a large cluster
(a few thousand cores) with a slow filesystem (Isilon).  When tasks inevitably
fail, perhaps because the network storage goes offline, or a computer dies, or
another user overwhelms the database with connections, I need to resubmit the
tasks to the batch queuing system (LSF) of the cluster that are not already
done.The solution in this module fits my constraints.  It handles the concurrent
writes of a thousand jobs marking things done (not all at once).  It is
reasonably fast for reading and writing up to millions of jobs.  This is
important because or batch queue (LSF) only handles a few thousand jobs at a
time gracefully.  Finally,donesuses MySQL as a backend, which is important
because I cannot run a key-value server like Redis on the cluster I use.## ContributeFeel free to make a pull request on github.## TestingAwkwardly,donesis configured with a MySQL database url from the
environment, so to test it, you need to add a url.  For example:DONES_DB_URL=mysql://myuser:password@localhost/mydb nosetests## RequirementsProbably Python 2.7 (since that is the only version it has been tested with.)MySQL-python PyPI package.## Installation### Install from pypi.python.orgDownload and install using pip:pip install dones### Install from github.comUsing github, one can clone and install a specific version of the package:cd ~
git clonegit@github.com:todddeluca/dones.git
cd dones
python setup.py installOr use pip:pip install git+git://github.com/todddeluca/dones.git#egg=dones## Usageimport donesif not dones.get(‘my_pipeline’).done(‘task1’):dotask(‘task1’)
dones.get(‘my_pipleline’).mark(‘task1’)
Package: donfig
Donfig is a python library meant to make configuration easier for other
python packages. Donfig can be configured programmatically, by
environment variables, or from YAML files in standard locations. The
below examples show the basics of using donfig. For more details see the
officialdocumentation.InstallationDonfig can be installed from PyPI using pip:pipinstalldonfigOr with conda using the conda-forge channel:condainstall-cconda-forgedonfigUsing DonfigCreate the package-wide configuration object for your package namedmypkg:# mypkg/__init__.pyfromdonfigimportConfigconfig=Config('mypkg')Use the configuration object:frommypkgimportconfigimportant_val=config.get('important_key')ifimportant_val:# do somethingelse:# something elseSet configuration in PythonConfiguration can be modified in python before code using it is called:# mypkg/work.pyfrommypkgimportconfigconfig.set(important_key=5)# use the configurationDonfig configurations can also be changed as a context manager:config.set(other_key=True)withconfig.set(other_key=False):print(config.get('other_key'))# Falseprint(config.get('other_key'))# TrueConfigure from environment variablesEnvironment variables are automatically loaded when the Config object is
created. Any environment variable starting with the name of the config
object in all capital letters and an underscore will be loaded in to
the config object:exportMYPKG_MY_KEY="a value"And can be accessed in python:frommypkgimportconfigprint(config.get('my_key'))Configure from YAML fileDonfig will also automatically load any YAML configuration files found in
specific paths. The default paths:~/.config/<config name>//etc/<config name>/<sys.prefix>/etc/<config name>/Note the/etc/<config name>/directory can also be specified with the
environment variableDASK_ROOT_CONFIG. Also note that~/.config/<package name>(or other location specified withDASK_CONFIG)
can be created as a custom user configuration file for easier user
customization (see documentation for details).HistoryDonfig is based on the original configuration logic of thedasklibrary.
The code has been modified to use a config object instead of a global
configuration dictionary. This makes the configuration logic of dask available
to everyone. The name “donfig” is a shortening of “dask.config”, the original
dask module that implemented this functionality.LicenseOriginal code from the dask library was distributed under the license
specified inDASK_LICENSE.txt. In November 2018 this code was migrated to
the Donfig project under the MIT license described inLICENSE.txt. The full
copyright for this project is therefore:Copyright (c) 2018 Donfig Developers
Copyright (c) 2014-2018, Anaconda, Inc. and contributors
Package: dong
MLOps platform for real world AI engineerdong.libgirl.comSign upbefore using dongInstallationpipinstalldongUsage$ dong
Usage: dong [OPTIONS] COMMAND [ARGS]...

  Universal Command Line Interface for Libgirl AI Platform

Options:
  --help  Show this message and exit.

Commands:
  Version   Print version and exit.
  endpoint  Operate on endpoint.
  help      Show this message and exit.
  init      Create a new ML project in an existing directory.
  login     Login with your credentials.
  new       Create a new ML project
  template  Generate module files from template, if not provided, the...
  train     Training job.Initdonginit#Create a new ML project in an existing directory.Newdongnew[argument]#Create a new ML projectTrain$ dong train
Usage: dong train [OPTIONS] COMMAND [ARGS]...

  Training job.

Options:
  --help  Show this message and exit.

Commands:
  exec    Execute training job.
  kill    kill running job.
  status  Retrieve training status, training message note.Endpoint$ dong endpoint
Usage: dong endpoint [OPTIONS] COMMAND [ARGS]...

  Operate on endpoint.

Options:
  --help  Show this message and exit.

Commands:
  kill    kill running endpoint.
  status  Retrieve endpoint status.
  up      Bring up endpoint to serve.AuthorTeam Libgirl(team@libgirl.com)LicenseLicensed under the Apache License 2.0 License.LinkIntroduction pagedong.libgirl.com
Package: donglify
donglifyThe majority of Linux systems have a sever security threat. These installs are
susceptable to data theft if the install disk is stolen. ArchLinux offers LUKS
as an encryption method to protect the root & data partitions. Even then, the
majority of these installs omit the encryption of the/bootor/efipartitions. This script helps automate the configuration of encrypted/boot.
And provides a solution in replacement of the/efipartition, which usually
can not be encrypted, by having it be present on a USB DONGLE.UsageTo use donglify, you will need to install the initial configurations onto a
USB, which can be done as follows:donglifyinit/dev/sd[a,b,c]This command creates the following partitions on your USB./efi, 512 MB, holds the EFI stub which the BIOS of a system to boot the
USB./boot, 2GB, holds the kernels of the donglified systems, AND thedongle.iniconfiguration file.dongleisos, size is set by the user, used to hold the ISOs which are
available in the GRUB menu on USB boot, currently onlyloopback.cfgISOs
can be used.donglepersist, size is set by the user, an encrypted LUKS partition that
can be used by the user to store personal data.In order to enter the interactive donglify prompt:donglify/dev/sd[a,b,c][2]The argument should be the donglified USB/bootpartition.Interactive Commandsdonglify uses an interactive CLI interface to conduct its business. This is
currently the only support, future support for automated installs could be
added.cmd: addAdds host system configuration to the donglified USB. This configuration is
automatically to the host system installed once established.donglify>addYou will be prompted for configuration options.You will need to add unlock root LUKS entry in/etc/crypttab.initramfs,
otherwise the initial ramdisk won't ask to unlock your root partition on your
added system. There you can also tell it about your keyfile location if you
choose to do so.[~]$sudocat/etc/crypttab.initramfscryptssdUUID=<yourUUIDhere>/boot/crypto_keyfile.bin
crypthddUUID=<yourUUIDhere>/boot/crypto_keyfile.bincmd: mountdonglify>mountMounts all donglified USB except fordonglepersist.cmd: unmountdonglify>unmountUnmounts all partitions thatmountmounted.cmd: listdonglify>listLists all installed systems on the USB.
Package: dongraphio
DonGraphioSmall utility library containing graph algorighms used in other projects.Base usage examplepip install dongraphioimportgeopandasasgpdfromdongraphioimportDonGraphiofromdongraphioimportGraphTypebuilds=gpd.read_file("test_data/buildings.geojson")services=gpd.read_file("test_data/services.geojson")dongrph=DonGraphio(city_crs=32636)intermodal_graph=dongrph.get_intermodal_graph_from_osm(city_osm_id=421007)adjacency_matrix=dongrph.get_adjacency_matrix(buildings_from=builds,services_to=services,weight="time_min")accessibility_isochrones,public_transport_routes,public_transport_stops=dongrph.get_accessibility_isochrones(graph_type=[GraphType.PUBLIC_TRANSPORT,GraphType.WALK],x_from=348925,y_from=6648260,weight_value=20,weight_type="time_min",)To get rid of GeoPandas warning message about Shapely one can use following construction in their code:importosos.environ["USE_PYGEOS"]=os.environ.get("USE_PYGEOS","0")
Package: donjon-painter
donjon-painter - Dungeon Map MakerThis is a fork of the outdatedBlackflighter/donjon-painter.donjon-painter is a companion script todonjon’s Random Dungeon Generator.
By selecting a TSV file along with a set of tile assets, you can easily create large, beautiful dungeon maps.
Learn how to create new tilesets for donjon-painterhere.PrerequisitesPython:>= 3.5PillowInstallationLinux and MacOSDownload the appropriate executable fromthe releases page.
Then extract the archive and run in the terminal.donjon-painterAUR Package (Arch Linux)If you’re using Arch Linux, get the PKGBUILDfrom here.Using pipdonjon-painter isavailable on PyPI. Get it using this command:pip install --user --upgrade donjon-painterWindows EXEWindows users have the option of downloading an EXE version of the script, which can be foundover here.
If you wish to run the EXE in the terminal often, you can edit yourPATHenvironment variable so you don’t need to navigate to the program first.setup.pyAll that needs to be done here is toclone this repository. Having done so, extract the files, and navigate to the location of said folder. Once you’re done with that, run this command:python3 setup.py installUsage1. Download your TSV fileFirst of all, begin by heading todonjon’s Random Dungeon Generatorto generate the dungeon of your liking. Having done that, you should select the option to download a TSV map of the generated file, as depicted below:2. Run the commandHaving done this, run donjon-painter. By default, if you don’t specify anything, it will default to interactive mode. This brings up a menu of options in the terminal, which you can then input.donjon-painterIf you’re using the EXE file, all you need to do is open it up, and this will bring you to interactive mode.A more advanced usage entails specifying both the command and the map file of your choice:donjon-painter [OPTIONS] MAPFILE3. [Optional] Using interactive modeCreating a map in interactive mode is a fairly simple process. You’ll be given a set of options to choose from, marked numerically. All you need to do is input said number, and follow the instructions provided.At minimum, you must select your TSV file of choice, along with the theme you would like to use. Other options can be toggled/set if you’d like some further customisation.OptionsThere’s a number of things you can do to change the behaviour of this script, as detailed below.-h, --help          Display the commands below
-t, --tileset       Specify a theme folder outside of the inbuilt ones (consult CONTRIBUTING.rst for further information)
-m, --measure       Measure the time it takes to create your map
-o, --output        Choose a different location/name to save your map to
-p, --pixels        Choose a different size to make your map tiles in pixels (default 70)
-r, --randomise     Shuffle the map floor patterns for some variation if required
-s, --savetiles     Used in conjunction with the --tileset option, create a complete tileset theme (consult CONTRIBUTING.rst)
Package: donjuan
DonJuanHACKATHON- a list of todo items for the 12/20/20 Hackathon can be found
on the issues page!A translation/rebuild of the originaldonjon dungeon generator.
This package aims to deconstruct the original script into extendable parts, and provide all pieces
for customization for different purposes and not just the map image. For example, when complete this package
will automatically generate walls, doors, and light sources for use inFoundry Virtual Tabletop.You can find thedocumentation here.InstallationInstallingdonjuanis possible using thesetup.pyfile. When the package is
more mature, we will cut a release on PyPI. For now, the steps to install are
to clone or download this repository and install into your Python environment.Assuming you havegit, you can do:gitclonehttps://github.com/tmcclintock/donjuancddonjuanpipinstall-rrequirements.txtpythonsetup.pyinstallIf you havecondayou can install the requirements using theenvironment.ymlfile
before installing:condaenvcreate-fenvironment.ymlcondaactivatedonjuanpythonsetup.pyinstallTo run the test suite, you must havepytestinstalled. You can run the tests with:pytestwhich can be done from the root of the repository.Note that the only requirement at the moment ispillow.ContributingTo contribute todonjuanplease see thedevelopingpage.
Package: donkey
# Donkey [WIP][![Build Status](https://travis-ci.org/bcho/donkey.svg)](https://travis-ci.org/bcho/donkey)A simple cron-like library for executing scheduled jobs.Donkey is inspired by [Cron][cron-go].[cron-go]: https://github.com/robfig/cron```pythonfrom datetime import datetimefrom donkey import JobQueue, Workerq = JobQueue()@q.job(3)def this_job_runs_every_3_seconds():print('Fuzz', datetime.now())@q.job(5)def this_job_runs_every_5_seconds():print('Buzz', datetime.now())Worker().run(q)# Fuzz 2015-02-03 16:41:01.408136# Buzz 2015-02-03 16:41:03.404123# Fuzz 2015-02-03 16:41:04.406813# Fuzz 2015-02-03 16:41:07.408426# Buzz 2015-02-03 16:41:08.406851# Fuzz 2015-02-03 16:41:10.408415# Fuzz 2015-02-03 16:41:13.403260# Buzz 2015-02-03 16:41:13.403319```## TODO- [x] tests.- [ ] add jobs at run time.- [ ] job states & stats (see [rq][rq]).- [ ] other backend (namely `thread`, `stackless`) support.[rq]: http://python-rq.org/## License[MIT](LICENSE)
Package: donkeycar
Donkeycar: a python self driving libraryDonkeycar is minimalist and modular self driving library for Python. It is
developed for hobbyists and students with a focus on allowing fast experimentation and easy
community contributions.Quick LinksDonkeycar Updates & ExamplesBuild instructions and Software documentationDiscord / ChatUse Donkey if you want to:Make an RC car drive its self.Compete in self driving races likeDIY RobocarsExperiment with autopilots, mapping computer vision and neural networks.Log sensor data. (images, user inputs, sensor readings)Drive your car via a web or game controller or RC controller.Leverage community contributed driving data.Use existing CAD models for design upgrades.Get driving.After building a Donkey2 you can turn on your car and go tohttp://localhost:8887to drive.Modify your cars behavior.The donkey car is controlled by running a sequence of events#Define a vehicle to take and record pictures 10 times per second.importtimefromdonkeycarimportVehiclefromdonkeycar.parts.cvimportCvCamfromdonkeycar.parts.tub_v2importTubWriterV=Vehicle()IMAGE_W=160IMAGE_H=120IMAGE_DEPTH=3#Add a camera partcam=CvCam(image_w=IMAGE_W,image_h=IMAGE_H,image_d=IMAGE_DEPTH)V.add(cam,outputs=['image'],threaded=True)#warmup camerawhilecam.run()isNone:time.sleep(1)#add tub part to record imagestub=TubWriter(path='./dat',inputs=['image'],types=['image_array'])V.add(tub,inputs=['image'],outputs=['num_records'])#start the drive loop at 10 HzV.start(rate_hz=10)Seehome page,docsor join theDiscord serverto learn more.
Package: donkey_kong
Send mandrill templates from the command line.Usage:
    mandrill_send <command> [params]

Options:
    mandrill_send --help
    mandrill_send --version

Commands:
    setup:
        Prompts the user for their credentials and the saves them
        to a mandrill_send "dot" file.

    config:
        Returns the users configurations.

    list:
        Return a table with your current mailchimp templates data,
        and any custom variables you have.

    send <template_name>:
        Prompts the user for the template name, from email address, from name,
        to email address, to name, subject, and any variables that get
        passed to the template. Then sends the template.
Package: donlabtools
manifolds project @ Donato labInstallationRecommended stepsOpen a command-line interface preferably inside the conda enviroment on your operating system (Windows, Mac)Use command-line to make a conda enviorment for running manifolds project:conda create -n manifolds python=3.8Activate environment:conda activate manifoldsInstall dependencies (might have to do them 1 at a time; eventually will have a script for this)pip install: matplotlib, os, numpy, scipy, tqdm, sklearn, pickle, parmap, networkx, pandas, cv2Install jupyter notebookconda install -c anaconda jupyterDownload and unzip the Donatolab binarization repo (https://github.com/donatolab/manifolds, click onthe green "Code" button)Start jupyer notebook by typing it in at the command linejupyter notebookNavigate to the folder where the code unzipped and click on this file to start the jupyter notebook:"Binarize_Suite2p_Inscopix.ipynb"Run the first cell and then input the location of your suite2p folder in 2nd cell. Run the rest of the notebook.The code will save 2 files: binarized_traces.npz (a python numpy file) and binarized_traces.mat (a matlab file).10(Optional) You can then use the last cell to visualize the traces and binarized versions for any specific cell.
Package: donna25519
Curve 25519 is an elliptic curve cryptography key-agreement protocol.Two parties, Alice and Bob, first generate their (public, private)
keypairs. They then exchange public keys on an insecure channel, and
use the protocol to establish a shared secret between them.This is a Python wrapper for the ‘curve25519-donna’ library for the
curve 25519 elliptic curve Diffie-Hellman key exchange algorithm. The
portable C ‘Donna’ library was written by Adam Langley, and is hosted
athttps://github.com/agl/curve25519-donna. This library is a near-
complete rewrite of an earlier python wrapper written by Brian Warner
of Mozilla.Documentation is available athttps://github.com/Muterra/donna25519.
Package: donordrivepython
A Python reference implementation of the [Donor Drive API](https://github.com/DonorDrive/PublicAPI)This project aims to provide a Python package the user could import to create a project to access the Donor Drive API.For an example of what you can build to provide extra functionality around the Donor Drive API, see my project, [ElDonationTracker](http://djotaku.github.io/ELDonationTracker/) for the Extra Life charity event. It takes the Donor Drive API information and converts it to text files and HTML files that the gamers can use for live streaming during the Extra Life Event. Currently, it has the API integrated into it. The API implementation there will become the initial release in this repo.
Package: donote
DonoteThe minimalist note editor for your terminal.Createnotes...Editnotes...Savenotes...donoteis a python implementation of a minimalist note editor for your terminal.
It facilitates creating, editing and managing notes asmarkdownfiles.As such, it provides a CLI with the followng sintax:dono<command><note_name(optional)><tag(optional)>Thecommandsinclude:note l/listto list all notesnote show <note_name>to render a single note in the terminalnote e/edit <note_name>to edit an existing notenote rm/remove <note_name>to delete a notenote n/new <note_name>to create a new note with a given Namenote t/tag <note_name> <tag>to add a new tag to an existing notenote untag <note_name> <tag>to remove a tag to an existing noteEditing a note opens the markdown file usingnano, other editors can be used to edit the.mdfiles externally.Installationpip install donoteDisclaimer:donoteis a personal project, as such the path to where the notes are saved on my machine are hardcoded. If you want to usedonotelet me know and we can improve this (or you can fork this repository and alter the paths).Built withrichandpyinspect
Package: donotimport
donotimportA simple package to prevent the abusive use of the import statement in Python.Installation:pip install donotimport==0.0.2Usage:importdonotimport#Your code is here without any import to any libraryExamples:# Example:1importdonotimport#For encryptionp1=ashar("123","Example:1").encode()print(p1)# OUTPUT:'''-If the library is already installed, the result will be:25#;F7=04-62%12?11<F0[54{89(E5:00O15z1AbA6BABHA2r@204xC5H9Fx2FSCFt98X72)B0}65]BA>77!5F$D9&37_B3+001-If the library is not installed, an error message will appear:ashar not exist!'''Changelog:## 0.0.2
- Fix Bugs.
## 0.0.1
- First public release.BTC : 16mUJYXdNh9VkjN3MQawA8wvYJqL9F5CKZ
Package: donotprint
模块介绍这个模块封装了一个类，类中有一个__init__方法和一个print方法，当初始化传入的时True时，print方法等同于内置函数print，当传入False时，print方法不会打印任何东西。代码示例fromdonotprint.donotprintimportPrintmy_str='string'a=Print(True)a.print(my_str)# 此时会输出值b=Print(False)b.print(my_str)# 此时不会输出值
Package: donpeterlibs
bajar el repositoriogit clonehttps://github.com/soypedroamaya/docker-ubuntu-python-pkgs.gitnos metemos dentro del repocd docker-ubuntu-python-pkgsconstruimos la imagendocker build -t img-docker-ubuntu-python-pkgs .construimos el contenedor basado en la imagen, con interaccion en la terminal y pegada a nuestro directorio localdocker run --name cnt-docker-ubuntu-python-pkgs -it -v $(pwd):/docker-ubuntu-python-pkgs img-docker-ubuntu-python-pkgs bash4.1 nos conectamos desde visual studio y con la extension "dev containers" a nuestro contenedor corriendonos movemos a la rama que necesitemos:git checkout expcreamos el entorno virtual de la ramapython3.10 -m venv expactivamos el entorno virtual anteriorsource exp/bin/activatebajamos las librerias necesarias y que estan segun la ramapip install --no-cache-dir -r requirements.txt(opcional) => pip freeze > requirements.txt
nota: para sacar una lista con las versiones exactas de las librerias que ocupa ese entorno.creamos las librerias externasnpm install------- conf de sphinx ----
mkdir docs -> en la raiz del proyecto
cd docs
sphinx-quickstart -> llenar las preguntas (aqui me quede...)
cd .. -> te salis hasta el directorio raiz
sphinx-apidoc -o docs .
cd docs-- agregar la palabra "modules" en el archivo index.rst, en el area del toctreemake html
meter en un browser:
file:///Volumes/MicroSD4GB/Codigo/public/soypedroamaya/docker-ubuntu-python-pkgs/docs/_build/html/index.html-- commitizen
primera vez
cz bump --yes --changelogpython setup.py bdist_wheel sdistpip install . (para probarlo localmente en un env)twine check dist/* (para probar que todo este bien)
twine upload -r testpypi dist/*twine upload dist/*