Saravanan666/pypi-org huggingface dataset:
Package: devcontainer-contrib
Devcontainers Contrib CLIInstallationpip install devcontainer-contrib[generate]Feature Generation:Usage: python -m devcontainer_contrib features generate [OPTIONS]
                                                        FEATURE_DEFINITION
                                                        OUTPUT_DIR

Arguments:
  FEATURE_DEFINITION  [required]
  OUTPUT_DIR          [required]

Options:
  --help                          Show this message and exit.Input for feature generation is afeature-definition.jsonfile
This is anextendedversion of thedevcontainer-feature.jsonfile withadditional fields:{...regular devcontainer-json fields  like id,name,description etc...# dependencies are list of features and options  (those will be installed as prerequisites to your feature)"dependencies":[{"feature":"ghcr.io/devcontainers-contrib/features/asdf-package:latest","options":{"plugin":"act","version":"latest"}}],# This command will be executed after the dependency feature list has been installed"install_command":"echo'Done'",# this example test scenario checks the default options (empty options dict), each test_command should exit wth code `0` if your feature is installed correctly."test_scenarios":[{"name":"test_defaults","image":"mcr.microsoft.com/devcontainers/base:debian","test_commands":["act--version"],"options":{}}]}redirect input{..."options":{"version":{"type":"string","default":"latest","description":"Selecttheversionofacttoinstall."}},# you can also redirect one of your actual devcontainer-feature.json options values into a dependency input, note the `$options.version` pointer to the asdf-package version option"dependencies":[{"feature":"ghcr.io/devcontainers-contrib/features/asdf-package:latest","options":{"plugin":"act","version":"$options.version"}}],...}Usage examplethis will generate the Elixir feature
It assumes you have the devcontainer-contrib cli already installedgitclonehttps://github.com/devcontainers-contrib/cli--depth1cdcli


devcontainer-contribfeaturesgenerate"./test/resources/test_feature_definitions/elixir-asdf/feature-definition.json""./output_dir"
Package: devcon-win
devcon_win - to interact withdevcon.exein NT systems using PythonWith devcon_win, you can access all functions of devcon.exe. In addition, you can see all available drivers as a function. Originally it was created to simply enable/disable device drivers using python.See below for more details.Getting it:To download devcon_win, either fork its github repo or simply use 
Pypi via pip.$ pip install devcon_winCompatibility:devcon_win is compatible for both python2 and python3.Using it:The devcon.exe present in this rep is for '64 bit windows 10'. If your windows's version is different then downloaddevcon.exeas per requirement.Move devcon.exe in the current script's directory or any path defined in environment variables say Python27/Scripts.Install devcon_win from pip.Usedevcon_win_driver.pyas a sample todisable webcamor any other driver as per requirement{BE CAREFUL}:import devcon_win

# To display status
print(devcon_win.HP_TrueVision_HD()) 
# Or
print(devcon_win.HP_TrueVision_HD('status')) 

# To change status
print(devcon_win.HP_TrueVision_HD('enable')) # will show options after 'devcon_win.'P.S: list of examples of devcon commands are presenthere.Contact:LinkedIn: https://www.linkedin.com/in/shivanshu26shiv/
Package: devcron
This is a development cron daemon. It's intended as a debugging tool whendeveloping anything cron based where it would be difficult to use normal cron orwhen cron runs must be modified for the dev environment.For example, I have a django project that uses cron to run periodic tasks. Thecrontab is in the source tree so it can be managed and deployed with the code.While doing dev work, I need to run the cron tasks locally and modify the pathof the commands. The crontab looks something like:# devcron delete_str /usr/local/bin/* * * * * /usr/local/bin/update-stats.py && \/usr/local/bin/publish-stats.pyThat works normally on the production server and when I'm working, I run:`devcron.py my-crontab`and it will run update-stats.py in the working directory (my development tree)once a minute.You can install with:`pip install devcron`
Package: dev_db
Django development database===========================Tool to automatically create a development database for local development by sampling your production database.It maintains referential integrity by looking up the dependencies for the selected rows.Installation============```bashsudo pip install dev_db```Add dev_db to your installed appsCustomize the CreateDevDB class```pythonDEV_DB_CREATOR = 'dev_db.creator.DevDBCreator'# for fashiolistaDEV_DB_CREATOR = 'framework.dev_db_creator.FashiolistaDBCreator'```Creating the data=================```bashpython manage.py create_dev_db -o ../development_data.jsongzip ../development_data.json```Creating the test fixture takes about 5-10 minutesLoading the data================start with an empty db on local calledtest_fashiolista_local1. python manage.py syncdb --all --noinput2. python manage.py migrate --fake --noinput3. Truncate contenttype and permission tables4. python manage.py loaddata ../development_data.json.gz --traceback -v2These four steps are also wrapped in the load_dev_db command. So simply run(This assumes you don't have the database yet, it wont drop it for you)```bashpython manage.py load_dev_db```Loading the fixture takes about 2 minutes(be sure to run pgtune on your local postgres, otherwise it might take longer)Running tests=============From the dev_db_example directory run```bashpython manage.py test dev_db```
Package: devdeck-core
# DevDeck - Core
![CI](https://github.com/jamesridgway/devdeck_core/workflows/CI/badge.svg?branch=main)Stream Deck control software for software developer’s.This is the core library for [DevDeck](https://github.com/jamesridgway/devdeck).Any controls or decks for DevDeck should be built using the core library.## Developing plugins for DevDeck
TODO### Making a ControlTODO### Making a DeckTODO## Making changes to devdeck_coreClone the repositoryRun./setup.shto create a new virtual environment and install dependenciesRun./run-tests.shto ensure that you can run tests successfullyThat’s it - get coding and enjoy!
Package: devdeck-home-assistant
DevDeck - Home AssistantHome Assistant controls forDevDeck.InstallingSimplify installDevDeck - Home Assistantinto the same python environment that you have installed DevDeck.pip install devdeck-home-assistantYou can then update your DevDeck configuration to use decks and controls from this package.ControlsSwitchToggleControlCan be used to toggle the state of a switch entityLightToggleControlCan be used to toggle the state of a light entityConfigurationExample configuration:decks:
  - serial_number: "ABC123"
    name: 'devdeck.decks.single_page_deck_controller.SinglePageDeckController'
    settings:
      controls:
        - name: 'devdeck_home_assistant.light_toggle_control.LightToggleControl'
          key: 0
          settings:
            api_key: 'YOUR_API_KEY_GOES_HERE'
            entity_id: 'light.your_light_entity_id'
            url: 'htts://homeassistant:8123'
        - name: 'devdeck_home_assistant.switch_toggle_control.SwitchToggleControl'
          key: 1
          settings:
            api_key: 'YOUR_API_KEY_GOES_HERE'
            entity_id: 'switch.your_switch_entity_id'
            url: 'htts://homeassistant:8123'PrerequisitesYou must have the API enabled by having anapientry in your home assistant configuration:api:See theHome Assistant API docsfor more details.You will also need aLong-Lived Access Tokenwhich can be generated from the profile page (/profile).
Package: devdeck-hue
DevDeck - Philips Hue integrationPhilips Hue light controls forDevDeck.InstallingSimply installDevDeck - Hueinto the same python environment that you have installed DevDeck.pip install devdeck-hueYou can then update your DevDeck configuration to use decks and controls from this package.Controlstoggle.ToggleCan be used to toggle on/off a Philips Hue lamp.brightness.IncreaseCan be use to increase light brightness by a static amount.brightness.DecreaseCan be use to decrease light brightness by a static amount.One-time setupThephuemodule which is used under the hood requires a one-time pairing with
the Hue bridge, once. Easiest way to do this is:python3 -m phue --host 192.168.1.42Where--hostis the IP of the Hue bridge.ConfigurationExample configuration:decks:
  - serial_number: ABC123
    name: devdeck.decks.single_page_deck_controller.SinglePageDeckController
    settings:
      controls:
        - name: devdeck_hue.toggle.Toggle
          key: 0
          settings:
            host: 192.168.1.23
            light_id: 4
          - name: devdeck_hue.brightness.Increase
            key: 1
          settings:
            host: 192.168.1.23
            light_id: 4
            step: 20
        - name: devdeck_hue.brightness.Decrease
          key: 1
          settings:
            host: 192.168.1.23
            light_id: 4
            step: 20light_idis the light ID from the hue bridge. A simply way to list connected
lights by id is to run the following Python snippet:python3 -c 'import phue; b=phue.Bridge(); b.connect(); print(b.get_light_objects(mode="id"))'
Package: devdeck-key-light
DevDeck - Key LightElgaato Key Light controls forDevDeck.InstallingSimplify installDevDeck - Key Lightinto the same python environment that you have installed DevDeck.pip install devdeck-key-lightYou can then update your DevDeck configuration to use decks and controls from this package.ControlsKeylightToggleControlCan be used to toggle the state of an Elgato Key LightConfigurationExample configuration:decks:
  - serial_number: "ABC123"
    name: 'devdeck.decks.single_page_deck_controller.SinglePageDeckController'
    settings:
      controls:
        - name: 'devdeck_key_light.key_light_toggle_control.KeyLightToggleControl'
          key: 0
          settings:
            host: '192.168.1.23'
Package: devdeck-macos
DevDeck - macOSA drop-in replacement for operating system controls and decks implemented inDevDeck.DevDeck is a really neat tool but some of the default controls such as the volume controls assume you are running on a machine withPulseAudioie; Linux.This package is intended as a replacement for those controls but with support for macOS instead.More specifically, it usesosascriptto issue system commands under the hood.By drop-in, you should only have to change the package name in the original DevDeck controls to achieve the same effect for macOS eg;decks:- serial_number: "ABC123456789"name: 'devdeck.decks.single_page_deck_controller.SinglePageDeckController'settings:controls:-       - name: 'devdeck.controls.volume_mute_control.VolumeMuteControl'+       - name: 'devdeck_macos.controls.volume_mute_control.VolumeMuteControl'InstallingSimply installDevDeck - macOSinto the same python environment that you have installed DevDeck.$pipinstalldevdeck-macosYou can then update your DevDeck configuration to use decks and controls from this package.ConfigurationAt the moment, onlyVolumeMuteControlis implemented but I plan to port over more controls shortly.Example configuration:decks:-serial_number:"ABC123456789"name:'devdeck.decks.single_page_deck_controller.SinglePageDeckController'settings:controls:-name:'devdeck_macos.controls.volume_mute_control.VolumeMuteControl'key:0NOTE: Unlike the original package, you do not have to specify the specific microphone as it will default to the currently selected default in System Preferences.If there is a need for it, I can see whether osascript supports muting a specific input device.
Package: devdeck-obs
DevDeck - OBSOBS controls forDevDeck.In this example, you can change scenes in OBS.InstallingSimplify installDevDeck - OBSinto the same python environment that you have installed DevDeck.pip install devdeck-obsYou can then update your DevDeck configuration to use decks and controls from this package.ConfigurationExample configuration:decks:-serial_number:"ABC123"name:'devdeck.decks.single_page_deck_controller.SinglePageDeckController'settings:controls:-key:3name:devdeck_obs.obs_control.OBSControlsettings:scene_name:Webcamemoji:'camera'-key:8name:devdeck_obs.obs_control.OBSControlsettings:scene_name:Desktopemoji:'desktop_computer'-key:13name:devdeck_obs.obs_control.OBSControlsettings:scene_name:AFKemoji:'zzz'CredentialsCurrently this does not use a username and password to access the OBS websocket. This may change in future, but the default will always be'':''.
Package: devdeck-slack
DevDeck - SlackSlack deck and controls forDevDeck.In this example, you can manage your presence, status and do-not-disturb settings from your StreamDeck:InstallingSimplify installDevDeck - Slackinto the same python environment that you have installed DevDeck.pip install devdeck-slackYou can then update your DevDeck configuration to use decks and controls from this package.ConfigurationExample configuration:decks:
  - serial_number: "ABC123"
    name: 'devdeck.decks.single_page_deck_controller.SinglePageDeckController'
    settings:
      controls:
        - name: 'devdeck_slack.slack_deck.SlackDeck'
          key: 0
          settings:
            api_key: 'YOUR_API_KEY_GOES_HERE'
            actions:
              - action: online
                key: 0
              - action: away
                key: 1
              - action: status
                key: 2
                text: At my desk
                emoji: ':desktop_computer:'
                clear_dnd: true
              - action: status
                key: 5
                text: In a meeting
                emoji: ':calendar:'
              - action: status
                key: 6
                text: Lunch
                emoji: ':sandwich:'
              - action: status
                key: 7
                text: Off sick
                emoji: ':face_with_thermometer:'
                until: tomorrow at 8am
              - action: status
                key: 8
                text: On holiday
                emoji: ':palm_tree:'
              - action: dnd
                key: 10
                duration: 15
              - action: dnd
                key: 11
                duration: 30
              - action: dnd
                key: 12
                duration: 45
              - action: dnd
                key: 13
                duration: 60
              - action: dnd
                key: 14
                duration: 120Registering your app and creating permissionsThis plugin requires a Slack API key to function.Head over tohttps://api.slack.com/appsto create your app.Once you have created your app you will be able to access your OAuth Access Token underOAuth & Permissions- this
is yourapi_keyvalue.ScopesUnderUser Token Scopesyou need want to enable the following scopes:dnd:readdnd:writeusers.profile:writeusers:write
Package: dev-dependencies
Dev DependenciesOpinionated development dependencies for python projects.Install this as your only dev dependency to pick up a bunch of common dev-time libraries you may need for things like linting, type checking and tests.Installation# Using pipenv:
pipenv install -d dev-dependenciesWhat you getLintingruff check .
black --check .
# There is also flake8, but ruff is just nicer
flake8Type checkingmypy devdeps testsTestspytestBuilding a package to release# Build a distribution (for releases, do this on main with a fresh tag)
python -m build

# To release that package
twine upload dist/dev-dependencies-*.tar.gz dist/dev_dependencies-*-py3-none-any.whl

# To see what the current version will be
python -m setuptools_scm
Package: devdns
It does one thing: maps a custom TLD (like .dev) to an IP (like 127.0.0.1).## Usesudo devdns
sudo devdns test
sudo devdns dev 192.168.1.110By default devdns maps thedevTLD to127.0.0.1. This is probably all most people will need. The first argument, if specified will set a custom TLD liketest(www.myserver.test). The second argument allows you to specify an IP address, for example the address of a server on your LAN.You need to run it as root because it uses port 53, the standard DNS port. Also you’ll want to add localhost (127.0.0.1) to the top of your DNS server list. I recommend adding google’s DNS addresses (8.8.8.8 and 8.8.4.4) as backup servers.![](http://raw.github.com/colevscode/devdns/master/dnsconfig.png)## CreditsMuch of this code was adopted from [minidns](https://code.google.com/p/minidns/) which itself borrowed heavily from [Francisco’s recipe](http://code.activestate.com/recipes/491264-mini-fake-dns-server/).
Package: deveal
Deveal is an helper tool for using the marvelousreveal.js presentation framework.It provides the ability tocreate a new presentationsplit presentation into multiple fileseasily parameterize the presentation (title, theme, custom css, …)build presentation into a single index.html filewatch for presentation updates while editing the source filesDeveal is developped in Python 3 and mainly relies on the wonderfulJinja2,PyYamlandwatchdogpackages.InstallationUse the pip installation toolpipinstalldevealThe dependencies will be automatically installed.UsageDeveal is a command line tool. It must be used from within a terminal.Run the following command to get helpdeveal--helpdeveal newThedeveal newcommand creates a new presentation.
As it creates the presentation directory itself, the command must be run in the upper directory where the new presentation will be created(example below for creating a new presentation named “mynewslideshow”)devealnewmynewslideshowThis command creates the minimal required files in the presentation directorythedeveal-index.htmltemplate filethedeveal.yamlconfiguration fileAdeveal.cssfile for optional custom styles and asectionsdirectory with an example presentation are also createdThe deveal-index.html file is the template for the presentation.
It a Jinja2 template rendered throught thedeveal buildcommand, using the variables contained in the deveal.yaml file.
Unless you want to modify the reveal.js configuration, you should not have to modify this template.The deveal.yaml file contains the configuration for the presentation. It should contains the folling expected variables:reveal_path : The path or URL to the installed reveal.js framework (default is “https://cdn.jsdelivr.net/npm/reveal.js@4.1.0”)reveal_theme : The theme to use for (default is “black”)content_files : The ordered array of files containing the parts of the presentationcustom_css : The path to custom css files if anyAny other variable defined in this file is made available as a variable for the template file.
This may be useful to customize the base template.deveal buildThedeveal buildcommand builds the presentation as a singleindex.htmlfile using the deveal-index.html and deveal.yaml filesdevealbuildThe obtained index.html file is the presentation itself that can be open throught a web browser.deveal watchThedeveal watchcommand watches for files changes in the presentation directory and subdirectories.
If a change is detected, a build is automatically triggered. TypeCtrl+Cto stop watching.devealwatchTipsFor an easier writing and maintenance of the presentation, it is encouraged to split the presentation into multiple files (for example title.html, part1.html, part2.html, …)it is encouraged to put the graphics used in the presentation in a dedicated subdirectory (named “graphics” for example)AuthorsDeveal is developed byJean-Christophe Fabre
Package: develocorder
DevelocorderDevelocorder is a simple live value plotter for Python3 using Matplotlib. It is intended to give insights into the training of machine learning models / reinforcement learning agents with only minimal effort to add to existing code.(image source)Installation$ pip install develocorderSimple Example# initialize onceset_recorder(my_value=LinePlot())# add values to plot from anywhere in codefor_inrange(10):record(my_value=random())Seeexamples/simple.pyResultFancy ExampleSome more features:# axis labelsset_recorder(labeled=LinePlot(xlabel="Episode",ylabel="Score"))# additional filtered values (window filter)set_recorder(filtered=FilteredLinePlot(filter_size=50))# maximum history lengthset_recorder(detail=LinePlot(max_length=50))# downsampled values (record mean of every filter_size values)set_recorder(downsampled=DownsampledLinePlot(filter_size=5))# multiple curves for recording 1d-array valuesset_recorder(multiple=FilteredLinePlot(filter_size=50))# heatmap for recording 1d-array valuesset_recorder(heatmap=Heatmap())# minimum update period (limit update rate for better performance)set_update_period(0.5)# [seconds]# set number of columnsset_num_columns(2)Seeexamples/fancy.pyJupyter notebookFor use in a Jupyter notebook use the%matplotlib notebookbackend. As of now you cannot rerun the cell which is showing the plot without restarting the notebook, otherwise the plot will disappear.Seeexamples/simple.ipynbTODOsdocument how to extendbetter support for jupyter notebookadd new plot typespersistent storage/loading of log
Package: developer-disk-image
OverviewStore both types of Apple's DeveloperDiskImage files:DeveloperDiskImage.dmg&DeveloperDiskImage.dmg.signatureUsed for each iOS version < 17.0The new Personalized images, but splitted to:APFSBuildManifest.plistTrustcacheThe split of the new format is requires for OS* other than macOS that will have trouble extracting the original APFS
image inside:~/Library/Developer/DeveloperDiskImages.Python packageAdditionally, this repo provides a python API for accessing this repository.
You can install it as follows:python3-mpipinstall-Udeveloper_disk_imageExample usagefromdeveloper_disk_image.repoimportDeveloperDiskImageRepositoryrepo=DeveloperDiskImageRepository.create()# will get both the APFS and the signature filedeveloper_disk_image=repo.get_developer_disk_image('16.4')# will get all necessary files for mountpersonalized_disk_image=repo.get_personalized_disk_image()
Package: developer-experience
A knowledge base of things that make the Python developer experience pythonic.DependenciesIntegratepyenvwithpipenvto install the Pipfile pinned version of Python
or useminicondato install the pinned version of Python then activate the
conda environment before running pipenv install so that pipenv finds the correct
version of Python. Alternatively, usePoetryfor managing both dependencies and
environments.condacreatepython=3.8--namepydxcondaactivatepydxpipinstall-rrequirements/assumed.txtpipenvinstall--dev-rrequirements/development.txtpipenvshell
Package: developer-tools-exponential
developer-utils-flaskvalidateCredentialThis method can be used to validate calls made from the Exponential server to the API. To use this, download this package and import validateCredential then use it as a decorator function.Installation:pip install developer-tools-exponentialQuick Start:from flask import Flask, request
from exponential import validateCredentials
from dotenv import load_dotenv

app = Flask(__name__)
load_dotenv()

@app.route('/', methods=['GET', 'POST'])
@validateCredentials(os.getenv("API_SECRET_KEY"))
def hello_world():
	return 'Hello World'

if __name__ == '__main__':
	app.run()
Package: devenney-accounts
# django_accounts[![Build Status](https://api.travis-ci.org/devenney/django_accounts.svg?branch=master)](https://travis-ci.org/devenney/django_accounts)
[![Coverage Status](https://coveralls.io/repos/github/devenney/django_accounts/badge.svg)](https://coveralls.io/github/devenney/django_accounts)