Saravanan666/pypi-org huggingface dataset:
Package: devpod
DevPod: Rootless, FOSS .DevContainer ToolingA support framework for using.devcontaineron Linux desktops. Let's start
with Buildah + Podman + Builder, but the project is open to contributions for
other IDE integrations.Example ProjectThis example assumes a working Podman installation, which exists out of the box onFedora Silverbluebut is also available onmany distributions and platforms.Install this utility:pip install devpodCloneMicrosoft's PHP sample repositoryand make it the working directory:git clone https://github.com/microsoft/vscode-remote-try-php.git
cd vscode-remote-try-php/In.devcontainer/devcontainer.json, uncomment thepostCreateCommanddirective and ensure there's a comma at the end of the lineif not yet fixed.Build the container and launch:devpod run --launchEditindex.phpin your IDE and reload the page in your Browser to see changes.Basic Setup and UsageSetupThese instructions should work out of the box on Fedora Silverblue 33+.Install this utility (choosing an alternative topiplikepipxif you like):pip install devpodUsageIn the CLI, change to the parent directory of.devcontainerfor your project.Run the utility (which willdeleteany container with the same name as your project directory):devpod run --launch  # Will open a browser to forwarded ports.TroubleshootingThelaunchcommand should list any open ports at the end of the process,
but you can also list them using Podman directly:podman port --latestDeveloping DevPod ItselfInstalling the CLI Tool from Local BuildsThese instructions have been tested on Fedora Silverblue 33 but are probably adaptable to other setups.Install Python package tooling (using aToolboxif desired):sudo dnf install poetry pipxClone the DevPod code and make it your working directory.Build and (re)install the utility for global use:rm -rf dist/ && poetry build && pipx install --force dist/devpod-*.tar.gzThedevpodcommand should now be globally available to your user, even
outside of any Toolbox.Resources.devcontainer Reference DocumentationPodman Commands DocumentationRootless PodmanShortcomings of Rootless PodmanVolumes and Rootless PodmanUser Namespaces, SELinux, and Rootless Containers
Package: devprocess
JIRA Command Line ToolThis tool provides the capability to quickly react to issues found in a Production environment.InstallationDownload and install Python 2.7.10 if it is not already available and run:> pip install devprocessSetupWhen running the first time setup defaults by:> devprocess config <jira-username> <jira-password> <jira-project-name> <jira-agile-board-name>UsageReport a BugWhen a new “Blocker” high priority Bug is encountered in the Production environment enter:> devprocess blocker "Details of issue encountered in Component X which will be added to the jira issue summary"
Bug TE-8 created and assigned a priority of "Blocker"
This needs to be triage immediately. For help with triage enter:
devprocess triage --helpThis will create a Bug and set:Project: <jira-project-name> (from the config above)Priority: BlockerTriageTo Triage this ticket enter:> devprocess triage TE-8 5 arahim
Issue TE-8 Triaged successfullyThis will triage issue TE-8 by setting:
* Story Points: 5
* Assignee: arahim
* Epic Link: [Ongoing] Production Bugs (This is the default setting. To change it look at “devproc config –help”)
* Sprint: <Current Active Sprint> (If there is not active sprint this will not be set)HelpTo get help:> devprocess --help
> devprocess blocker --help
> devprocess triage --help
Package: devpy
Devpy is a set of tools to ease Python development.Installpip install devpyQuick demoDevpy provide a quick dev setup for logging that you can replace later by a more robust solution:importdevpy.developasloglog.info('This is an info')log.warning('This is a warning')log.error('This is an error')log.critical('This is a critical error')log.info('Now let me crash the program. This stack trace is automatically in the log file:')importcodecscodecs.open('/thisdoesnotexist')This gives:AutologSetuping proper loging is tedious, so you may want to do it later, but you wish you could get basic logging right now:importdevpy# Get a logger that automatically log to console and a rotating file# The rotating file is setup in the temp directory of your system, in# a subdir named after your script name.# Logs are colored in the console according their level.# The file path is printed at the begining of the program.log=devpy.autolog()# log is a regular stdlib logger object# start logging:log.info('Yes')Once you have time to setup logging seriously, you can just replace the autolog with a regular custom Python logger, and all your logs will still work.Setting the environment variable DEVPY_LOG_LEVEL to an integer or a level name (debug, info, error, warning, critical…) will set the autolog log to it.Setting the environment variable DEVPY_COLOR_LOG to 0 disable the color in the log.autolog parameters:level (default=-1): the general log levelname (defaul=name of the root module): the name of the log filepath (default=OS temp dir + name): path to the log filelog_on_crash (default=True): add a hook to log the stack trace in case of a crashlog_filename (default=True): log log file pat at the program startcolor_log (default=True): add colors to the logStacktrace helperFormat the stack trace so that:it separates the various logicial blocsit emphasis the lines of your program and not the stdlblines of your program are syntax highlightedJust do:importdevpydevpy.color_traceback()All helpers at onceTwo ways:importdevpylog=devpy.dev_mode()# can set color_traceback=True, autolog=True# or just# import devpy.develop as log# for a one liner to activate it all
Package: devpytools
devpytoolsTools for development.Installation$ pip install devpytoolsUsageCacherGet and use default inmemory cacherfromdevpytoolsimportgetCacherc=getCacher()@c.cache()defa(b):...Create the cacher that saves a pickled data on disk and can be used between runsfromdevpytoolsimportCacherc=Cacher(name='dev',tmpDirPath='./tmp')Get previously configured cacher in other file and usefromdevpytoolsimportgetCacherc=getCacher("dev")@c.cachedefa(b):...ExamplefromdevpytoolsimportCacherfromdevpytools.cacherimportextensionsIS_DEV=os.getenv("IS_DEV","")=="true"devCacher=Cacher(name="dev",tmpDirPath="./tmp",isEnable=IS_DEV,# work only if run in dev environmentisExpired=extensions.expireAfterHours(1),# recache if cached data older than 1 hourisSavable=lambdaresult:bool(result),# only cache positive function call results)@devCacher.cachedefa(b):...# works with the same params as devCacher but saves caches to ./tmp1 folder@devCacher.cache(tmpDirPath="./tmp1")defa1(b):...# currently disable cache for that func@devCacher.cache(isEnable=False)defa2(b):...# cache only those calls that return more than 0 elements@devCacher.cache(isSavable=lambdaresult:result['count']>0)defa3(b):...# use only a and b arguments to determine unique key of the function call@devCacher.cache(uniqueKey=lambdaargs:args['a']+args['b'])defa4(a:str,b:str,c:str):...c=getCacher()# to determine the uniqueness of a function call use only a and b arguments@c.cache(uniqueKey=("a","b"))defa(a,b,c):...OtherreplaceFuncfromdevpytoolsimportreplaceFuncIS_DEV=os.getenv("IS_DEV","")=="true"defdevFunc():# predefined results for development...# replace only if IS_DEV is True@replaceFunc(devFunc,isEnabled=IS_DEV)defprodFunc():# time consuming function...
Package: dev-radio
dev-radiodev-radio is simple command line tool to listen to radio and developer podcasts.NOTE: This package requires vlc to be installed on your system.Listen to radio.Listen to podcasts.ContentsHow to installHow to usedev-radio helpRadioRadio helpList all the radio stations.Playing a radio station.Adding a new radio station.Deleting a radio station.Renaming a radio station.Resetting all radio station to default ones.Check which stations are working.PodcastPodcast help.List all the podcasts.Show all the episodes of a podcast.Play an episode of a podcast.Setting up for development.InstallationJust runpip install dev-radiousepip3if you are on Linux.UsageHelp menuShows the help menu about dradio and it's subcommands.$dradio--helpRadioPlay radio streams.radio help$dradioradio--help# Using alias.$dradiorad--helpListing all the radio stations.$dradioradio--list# Using alias.$dradioradio-L# or$dradiorad-LPlaying a radio station namedjpop.$dradioradio--playjpop# Using alias$dradioradio-Pjpop# or$dradiorad-PjpopAdding new radio station.# adds a new station with name hip-hop0$dradioradio--add-stationhip-hop0https://stream.laut.fm/1000hiphop# Using alias$dradioradio-Ahip-hop0https://stream.laut.fm/1000hiphop# or$dradiorad-Ahip-hop0https://stream.laut.fm/1000hiphopDeleting a radio station.$dradioradio--del-stationhip-hop0# Using alias$dradioradio-Dhip-hop0# or$dradiorad-Dhip-hop0Renaming a radio station.$dradioradio--rename-stationhip-hop0hip-hop# Using alias$dradioradio-Rhip-hop0hip-hop# or$dradiorad-Rhip-hop0hip-hopResetting all the stations to default ones.This deletes any newly added stations, renamed stations and restores the default radio stations.$dradioradio--reset# No alias for reset option.$dradiorad--resetCheck which stations are working.$dradioradio--check# Using alias$dradioradio-C# or$dradiorad-CPodcastPlay podcasts.podcast help$dradiopodcast--help# Using alias$dradiopod--helpList all the podcasts.This prints list of all currently available podcasts.$dradiopodcast--list# Using alias$dradiopod--list# or$dradiopod-LShow all the episodes of a podcast.$dradiopodcast--all-epsstackoverflow# Using alias$dradiopodcast-Astackoverflow# or$dradiopod-AstackoverflowPlay an episode of a podcast.# 0 is the episode ID NOT episode number.# Passing episode ID as 0 plays the latest episode of the podcast.$dradiopodcast--playstackoverflow0# Using alias$dradiopodcast-Pstackoverflow0# or$dradiopod-Pstackoverflow0Setting up development environment.git clone https://github.com/Legion-God/dev-radio.gitcd dev-radiothen create your virtual environmentvirtualenv venvActivate your venv by enteringsource venv/bin/activate, if you are on Windows use.\venv\Scripts\activatepip install -r requirements.txtTo install package locally, runpip install -e .And you are done !
Package: devrant-dl
devrant-dl💾 Get a dump of your entire history on devRantPeople frequently come and go fromdevRant, but must leave their data behind due to the platform's lack of a data export tool.devrant_dlis a community tool designed to fix that problem.InstallationTo installdevrant_dl, make sure bothpython3andpython3-pipare installed on your machine, then run:# Installpip3installdevrant_dl# View helpdevrant_dl-hUsageusage: devrant_dl [-h] [--rants-only] username output

Download all of your devRant account data

positional arguments:
  username              The (valid) username of your account
  output                An (empty) directory to dump your data into

optional arguments:
  -h, --help            show this help message and exit
  --rants-only          Only download rants
Package: devRantSimple
devRantSimpleA simple devRant api wrapper for the lazy peopleInstallationFirst, get it from pippipinstalldevRantSimpleThen, import the libraryimportdevRantSimpleasdRSThat's it!UsageThese are the avalible functions and vars:importdevRantSimpleasdRS# Rant Types# These are passed in to some functions to specify what data you want returneddRS.RantType.algo# AlgodRS.RantType.top# TopdRS.RantType.recent# Recent# Invalid Response# This is a string returned by some functions when something goes wrong.# It is always a smart idea to check if the thing returned by the function you are using is equal to this# If it is, you messsed up somewhere. (or the api changed)dRS.InvalidResponse# FunctionsdRS.getUserId("<username>")# Get a user id from a username (returns an int)dRS.userExists("<username>")# Check to see if a user exists with this username (returns a bool)dRS.getRant(dRS.RantType.<type>,<n>)# Get the n'th rant from list <type># Example return data for these parameters: (dRS.RantType, 1):# {'id': 1604103, 'text:': "Oh yeah. Hey guys. 2 things. \nFirst off. Forgot to say. Officially got a job. Finally. So thank you for all the help/advice and patience with my depressive rants!! \n\nI'm in a new chapter of my life now so thanks. \n\nAnd secondly. \n\nI FUCKING HATE MY JOB", 'score': 66, 'username': 'al-m'}dRS.getUserRant("<username>",<n>)# Get the n'th most recent rant posted by <username># Example return data for these parameters: ("ewpratten", 1):# {'text': 'I wonder..\n\nDo the new devduck capes say "devrant.com" on the back? Or do they still say "devrant.io"', 'score': 20, 'tags': ['devrant', 'i wonder'], 'id': 1600704}More functions, data, and info will come soon.ExampleThis is an example script that gets every rant posted by a user (one at a time) and prints it to the screen:importdevRantSimpleaddRSusername="ewprattenprevdata=""i=0whileprevdata!=dRS.InvalidResponse:prevdata=dRS.getUserRant(username,i)["text"]print(prevdata)i+=1
Package: devrepo
devrepoDevelopment repository operationsInstallpip install devrepoUsagebase_dir()Discover project roothttps://github.com/random-python/devrepo/blob/master/tool/release_update.pyshell()Invoke shell inside project roothttps://github.com/random-python/devrepo/blob/master/tool/github_squash.pyConfigDefault module configuration settings:https://github.com/random-python/devrepo/blob/master/src/main/devrepo/config.ini
Package: devrouw
DeVrouwDeVrouw is a dutch word reffering to "woman", not after the woman meme but to celeberate upcoming birthdate of mathematician Sophe Germain.  The library is useful for visualization and data analysis for beginners without using MatPlotlib and pandas together to write hectic scripts. Did you know? DeVrouw was entirely created by an AI system, and not even a single line, including this was written independently and copied from source!Usageimportdevrouw.visualizationasvizimportdevrouw.analysisasana# Load datadata=ana.load_data('data.csv')# Analyze datamean=ana.calculate_mean(data)median=ana.calculate_median(data)mode=ana.calculate_mode(data)# Visualize dataviz.plot_histogram(data)viz.plot_boxplot(data)# Print analysis resultsprint(f"Mean:{mean}")print(f"Median:{median}")print(f"Mode:{mode}")
Package: devsecops-api
devsecops-api-collectionThis collection is designed to manipulate the APIs for the services stood up for the DevSecOps on OpenShift Container Platform 4 workshop.It exposes several classes to manipulate those APIs with functions to manipulate the APIs using a context manager. These classes are the basis of Ansible modules in this collection.Additionally, there is a CLI based onclickthat helps to manipulate these APIs from the command line. This CLI uses the same backend but is distributed as PyPi package and can be run from the shell.NOTEThe Ansible Collection is... not actually done. This is a work in progress. The script works. 🙂
Package: devsecrets
devsecrets: read secrets from environment variables or filesWhy?It would be nice if a developer could check out a project and immediately run
and debug it through their IDE.For code that requires sensitive environment variables, you can't have that
because that would entail checking in secrets in run configurations.What?devsecrets gets you just a little closer to the ideal by letting environment
variables point to files containing the sensitive information.It doesn't help with creating, securing, or distributing those files.How?Instead of readingos.environdirectly, usedevsecrets.read_secret()in your code.
For instance, if accessing aDATABASE_URLvariable:from devsecrets import read_secret

DATABASE_URL = read_secret('DATABASE_URL')In development, set theDATABASE_URLenvironment variable to@.secrets.Create a.secretsfile in your project's directory, containing a line likeDATABASE_URL="driver://user:pass@host/dbname"Have your version control system ignore your .secrets file.What about non-development environments?Environment values that don't begin with the @-symbol are returned as-is byread_secret(), so if you already have your secrets in environment variables
in production, there's no need to do anything differently.If you do want to use secrets files in production, it probably makes sense
to point to them with absolute paths.DetailsWhere exactly doesread_secret()look for files?If the filename is absolute, it is used as is.Otherwise,read_secret()discovers where the code that called it lives and
starts there. Then it walks up the path all the way to the root.What is the format of the secrets files?By example:# comment
KEY1 = "value" #comment
key-2="#not-a-comment"

key_3 = "multiline\r\nvalue"Currently, values must be quoted.This is only because, for reasons of expediency,
aTOMLparser is used to parse these files.Installed codeBeware that how and where your code is installed matters becauseread_secrets()considers where the calling code lives. If that's in a site-packages
directory under/usr/libor~/.local/share/virtualenvsfor instance,
then a.secretsfile in~/projects/myprojectwon't be found.This is ordinarily not a problem because you install your code withpython setup.py install --developorpip install --editableso you run
your code from the same place where you checked it out.Installingpip install devsecretsRunning the teststoxVersioningWe useSemVerfor versioningreleases.LicenseThis project is licensed under the MIT License - see theLICENSE.txtfile for detailsRelated Projectspython-dotenv
Package: devsetgo-lib
Python:CI/CD Pipeline:SonarCloud:DevSetGo Common LibraryIntroductionThe DevSetGo Common Library is a comprehensive package of common functions designed to eliminate repetitive coding and enhance code reusability. It aims to save developers time and effort across various projects.Compatibility and TestingTested on: Windows, Linux.Compatibility: Potentially compatible with MacOS (feedback on issues is appreciated).Library FunctionsCommon FunctionsFile Functions:CSV File FunctionsJSON File FunctionsText File FunctionsFolder Functions:Make DirectoryRemove DirectoryLast File ChangedDirectory ListCalendar Functions:Get MonthGet Month NumberPatterns:Pattern Between Two CharactersLogging:Logging configuration and interceptorFastAPI EndpointsSystems Health Endpoints:Status/Health, Heapdump, UptimeHTTP Codes:Method to generate HTTP response codesAsync DatabaseDatabase ConfigAsync SessionCRUD OperationsExamples and UsageRefer to theRecipes PagesInstallation GuideQuick Startpipinstalldevsetgo-lib# Aysync database setuppipinstalldevsetgo-lib[sqlite]pipinstalldevsetgo-lib[postgres]# Consider these experimental and untestedpipinstalldevsetgo-lib[oracle]pipinstalldevsetgo-lib[mssql]pipinstalldevsetgo-lib[mysql]# For adding FastAPI endpointspipinstalldevsetgo-lib[fastapi]# Install everythingpipinstalldevsetgo-lib[all]Contribution and FeedbackContributions and feedback are highly appreciated. Please refer to ourContribution Guidelines.LicenseMIT LicensedAuthor InformationMike RyanFurther DocumentationFor more detailed information, visitLINK_TO_DETAILED_DOCUMENTATION.
Package: devsim
DEVSIMIntroduction:DEVSIM- TCAD Device SimulatorDEVSIMis a tool for TCAD Device Simulation, using finite volume methods.  The source code is provided by DEVSIM LLC.Website:The official website is here:https://devsim.orgInstallation:Please seeINSTALL.mdfor installation instructions from binary or source.  Archived binary releases are available atZenodo.Citing This Work:Please seeCITATION.md.Please do not cite this Github Repository as it will be moving in the future.License:DEVSIM is licensed under theApache 2.0 License.  Example scripts are also provided under this license.  Other files are subject to the license terms of their copyright owners.
Please seeLICENSEandNOTICEfor license terms.Documentation:The PDF documentation is located indoc/devsim.pdf.  An online version of the documentation is available athttps://devsim.net.  A list of documentation resources is availableonline.  Recent changes are available inCHANGES.md.The repository for the documentation is athttps://github.com/devsim/devsim_documentation.Supported Platforms:macOS 10.13 (High Sierra)Microsoft Windows (64 bit)Red Hat 7 (Centos Compatible)Software Features:Python scriptingDC, small-signal AC, impedance field method, transientUser specified partial differential equations (PDE).1D, 2D, and 3D simulation1D, 2D mesherImport 3D meshes.2D cylindrical coordinate simulationASCII file format with PDE embedded.Support:For support and general discussion, please join our forum:https://forum.devsim.orgContributing:Please see:Contribution guidelines for this projectTestingIf you wish to see simulation results, or run the regression tests yourself.  They are available from:NameDescriptiondevsim_tests_msysWindows MSYS Builddevsim_tests_win64Windows Visual Studio 2022 Builddevsim_tests_macos_arm64Apple M1 Builddevsim_tests_macos_gcc_x86_64macOS Builddevsim_tests_linux_x86_64LinuxThe results are platform dependent due to differences in the compiler, operating system, and math libraries used on each platform.Related ProjectsUsed directly by the simulatorNameDescriptionsymdiffSymbolic differentiation engine for the simulatordevsim_documentationDocumentation for the simulatorExtended examplesNameDescriptiondevsim_bjt_exampleBipolar Junction Transistor exampledevsim_density_gradientQuantum Corrections to Drift Diffusion simulationdevsim_3dmos3D Mosfet example used in publicationdevsim_miscMiscellaneous scripts
Package: devslibs
py-Ultroid LibraryCore library ofThe Ultroid, a python based telegram userbot.Installationpip3install-Upy-AyraDocumentationUsageCreate folders namedplugins,addons,assistantandresources.Add your plugins in thepluginsfolder and others accordingly.Create a.envfile with following mandatory Environment VariablesAPI_ID
API_HASH
SESSION
MONGO_URICheck.env.samplefor more details.Runpython3 -m Ayrato start the bot.Creating pluginsTo work everywhere@ultroid_cmd(pattern="start")asyncdef_(e):awaite.eor("Ayra Started!")To work only in groups@ultroid_cmd(pattern="start",groups_only=True,)asyncdef_(e):awaiteor(e,"Ayra Started.")Assistant Plugins 👇@asst_cmd("start")asyncdef_(e):awaite.reply("Ayra Started.")See more working plugins onthe offical repository!Made with 💕 byKynan.LicenseUltroid is licensed underGNU Affero General Public Licensev3 or later.CreditsLonamiforTelethon
Package: devstack-tools
Devstack Helper Tools in PythonThis is a set of cli tools for supporting devstack. It moves some of
the complexity out of bash and into python where it’s easier to have
comprehensive testing of behavior.Currently this includes thedsconftool, which provides a cli for
manipulating local.conf and ini files.usage: dsconf [-h]
            {iniset,inicomment,iniuncomment,inirm,extract-localrc,extract,setlc,setlc_raw,setlc_conf,merge_lc}
            ...

optional arguments:
  -h, --help            show this help message and exit

commands:
  {iniset,inicomment,iniuncomment,inirm,extract-localrc,extract,setlc,setlc_raw,setlc_conf,merge_lc}
                      sub-command help
  iniset              set item in ini file
  inicomment          comment item in ini file
  iniuncomment        uncomment item in ini file
  inirm               delete item from ini file
  extract-localrc     extract localrc from local.conf
  extract             extract and merge config from local.conf
  setlc               set variable in localrc of local.conf
  setlc_raw           set raw line at the end of localrc in local.conf
  setlc_conf          set variable in ini section of local.conf
  merge_lc            merge local.conf filesFree software: Apache licenseDocumentation:https://docs.openstack.org/devstack-tools/latest/Source:https://opendev.org/openstack/devstack-tools/Bugs:https://bugs.launchpad.net/devstackFeaturesTODO