Saravanan666/pypi-org huggingface dataset:
Package: progress-text
progress-textPython package for printing progress in text.Important NoteTheevery_percentin this tool can be achieved by setting the parameterminintervalto be equal tonum_max_iters * every_percent / 100. The reason why I created this tool was that I did not read the documents oftqdmcarefully (I have read it now on 2020-12-18) and I wanted a feature likeevery_percent.Now that this tool seems to be not so useful, however, I will not delete this project. Instead, I may keep improving this tool and regard it as a practice.Why nottqdmtqdmis awesome, but I just want to print the progress to a log file bynohup.Installpip3install--upgradeprogress-textOr clone the project, go into the project directory, and executepythonsetup.pyinstallorpipinstall./Or simply copy the source code.UsageSeeexample.py.PerformanceThe overhead is about 3 times astqdm. See./tests/test_overhead.To doNone
Package: progress-timer
Progress TimerA Python module which prints elapsed time and estimated time left with accordance to percentage파이썬 반복문에서 인덱스를 기반으로 백분율에 맞추어 진행률을 표시해주는 모듈Installpip install progress_timerUsagefrom progress_timer import Timer

length = len(a_iterator)
timer = Timer(length)
for idx, item in enumerate(a_itertator):
    timer.time_check(idx)Result
Package: progress-updater
progress-updaterWriting the progress of a task to a backend!InstallationInstall it usingpippipinstallprogress-updaterBasic usagefromprogress_updaterimportProgressUpdaterfromprogress_updater.backends.mongoimportMongoSettingssettings=MongoSettings(mongo_connection="mongodb://user:pass@mongo:27017",mongo_db="db",mongo_collection="logs",)updater=ProgressUpdater(task_name="My Task",settings=settings)withupdater(block_name="First part"):# doing thingsupdater.notify("doing first block...")# doing more thingswithupdater(block_name="Second part"):# doing thingsupdater.notify("doing second block...")# doing more thingsupdater.raise_latest_exception()# if existsThe output is:-Task:Mytask

-EnteringFirstpartdoingfirstblock...Timespent:0h0mSuccessfullycompleted

-EnteringSecondpartdoingsecondblock...Timespent:0h0mSuccessfullycompletedBackendsThe available backends to store logs areMongo,RedisandSQL.
Please read thedocsfor further information.Setting your backend with environment variablesYou can set your backend by defining env vars.
ThePU__prefix indicates that it belongs toProgressUpdater.# SQLPU__SQL_DSN='postgresql+psycopg2://user:pass@postgres:5432/db'PU__SQL_TABLE='logs'...# RedisPU__REDIS_HOST='redis'PU__REDIS_DB='1'PU__REDIS_PASSWORD='pass'...# MongoPU__MONGO_CONNECTION='mongodb://user:pass@mongo:27017'PU__MONGO_DB='db'PU__MONGO_COLLECTION='logs'...And then when creating aProgressUpdaterobject, the backend will be
automatically configured.fromprogress_updaterimportProgressUpdaterwithProgressUpdater(task_name="My Task")asupdater:passDocumentationPlease visit thislinkfor documentation.
Package: progrock
Theprogrock.MultiProgressclass is used in conjunction with the
methods exposed at the module level such asprogrock.incrementto
create a full-screen experience allowing the user to track the progress of
individual processes as they perform their work.Installationprogrock may be installed via the Python package index with the tool of
your choice. I prefer pip:pipinstallprogrockDocumentationhttps://progrock.readthedocs.orgRequirementsThere are no requirements outside of the Python standard library.ScreenshotThe following image shows the example code listing in action:ExampleThe following example will create a process for each CPU core on the system
that it is run on, displaying the MultiProgress screen. The child processes
will iterate 100 times, updating their progress bar and then sleeping up to
1 second.importprogrockimportrandomdefexample_runner(ipc_queue):# Update the processes status in its progress boxprogrock.set_status(ipc_queue,'Running')# Increment the progress bar, sleeping up to one second per iterationforiterationinrange(1,101):progrock.increment(ipc_queue)progrock.increment_app(ipc_queue)time.sleep(random.random())processes=[]# Create the MultiProgress instancesteps=multiprocessing.cpu_count()*100withMultiProgress('Example',steps=steps)asprogress:# Spawn a process per CPU and append it to the list of processesforproc_numinrange(0,multiprocessing.cpu_count()):processes.append(progress.new_process(example_runner))# Wait for the processes to runwhileany([p.is_alive()forpinprocesses]):time.sleep(1)Version HistoryAvailable athttps://progrock.readthedocs.org
Package: prog-server
Prognostics As-A-Service (PaaS) SandboxThe NASA Prognostics As-A-Service (PaaS) Sandbox is a simplified implementation of a Software Oriented Architecture (SOA) for performing prognostics (estimation of time until events and future system states) of engineering systems. The PaaS Sandbox is a wrapper around thePrognostics Python Package (ProgPy), allowing one or more users to access the features of these packages through a REST API. The package is intended to be used as a research tool to prototype and benchmark Prognostics As-A-Service (PaaS) architectures and work on the challenges facing such architectures, including Generality, Communication, Security, Environmental Complexity, Utility, and Trust.This is designed to be used with thePrognostics Python Package (ProgPy).Installationpip install prog_serverDocumentationSee documentationhereCiting this repositoryUse the following to cite this repository:@misc{2023_nasa_prog_server,
    author    = {Christopher Teubert and Jason Watkins and Katelyn Jarvis},
    title     = {Prognostics As-A-Service (PaaS) Sandbox},
    month     = October,
    year      = 2023,
    version   = {1.6},
    url       = {https://github.com/nasa/prog_server}
    }The corresponding reference should look like this:C. Teubert, J. Watkins, K. Jarvis, Prognostics As-A-Service (PaaS) Sandbox, v1.6, Oct 2023. URLhttps://github.com/nasa/prog_server.NoticesCopyright © 2021 United States Government as represented by the Administrator of the National Aeronautics and Space Administration.  All Rights Reserved.DisclaimersNo Warranty: THE SUBJECT SOFTWARE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY OF ANY KIND, EITHER EXPRESSED, IMPLIED, OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTY THAT THE SUBJECT SOFTWARE WILL CONFORM TO SPECIFICATIONS, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR FREEDOM FROM INFRINGEMENT, ANY WARRANTY THAT THE SUBJECT SOFTWARE WILL BE ERROR FREE, OR ANY WARRANTY THAT DOCUMENTATION, IF PROVIDED, WILL CONFORM TO THE SUBJECT SOFTWARE. THIS AGREEMENT DOES NOT, IN ANY MANNER, CONSTITUTE AN ENDORSEMENT BY GOVERNMENT AGENCY OR ANY PRIOR RECIPIENT OF ANY RESULTS, RESULTING DESIGNS, HARDWARE, SOFTWARE PRODUCTS OR ANY OTHER APPLICATIONS RESULTING FROM USE OF THE SUBJECT SOFTWARE.  FURTHER, GOVERNMENT AGENCY DISCLAIMS ALL WARRANTIES AND LIABILITIES REGARDING THIRD-PARTY SOFTWARE, IF PRESENT IN THE ORIGINAL SOFTWARE, AND DISTRIBUTES IT "AS IS."Waiver and Indemnity:  RECIPIENT AGREES TO WAIVE ANY AND ALL CLAIMS AGAINST THE UNITED STATES GOVERNMENT, ITS CONTRACTORS AND SUBCONTRACTORS, AS WELL AS ANY PRIOR RECIPIENT.  IF RECIPIENT'S USE OF THE SUBJECT SOFTWARE RESULTS IN ANY LIABILITIES, DEMANDS, DAMAGES, EXPENSES OR LOSSES ARISING FROM SUCH USE, INCLUDING ANY DAMAGES FROM PRODUCTS BASED ON, OR RESULTING FROM, RECIPIENT'S USE OF THE SUBJECT SOFTWARE, RECIPIENT SHALL INDEMNIFY AND HOLD HARMLESS THE UNITED STATES GOVERNMENT, ITS CONTRACTORS AND SUBCONTRACTORS, AS WELL AS ANY PRIOR RECIPIENT, TO THE EXTENT PERMITTED BY LAW.  RECIPIENT'S SOLE REMEDY FOR ANY SUCH MATTER SHALL BE THE IMMEDIATE, UNILATERAL TERMINATION OF THIS AGREEMENT.
Package: progstats
ProgstatsmasterdevelopA Website that categorizes the git statistics, documentation and code coverage
of gitlab projects.A live version is running atprogstats.namibsun.netThe project is meant to be served using apache and wsgi. The data directory
containing the topics to display should be inside a separate data directory
that is located in the same directory asprogstats.wsgi. So the structure
of the apache vhost should look something like this:/var/www/progstat.namibsun.net/
    -- progstats.wsgi
    -- data/
        -- git_stats/
        -- gitstat/
        ...An alias to that data directory should also be specified in the
vhost configuration file. A template for a vhost config file ishereFurther InformationChangelogLicense (GPLv3)GitlabGithubProgstatsPyPi
Package: prohosting24api
Python ProHosting24 APIThis is a non-official project!InstallInstall from pippython3 -m pip install --upgrade prohosting24api --userManually Installationgit clone https://github.com/AdriBloober/Python_ProHosting24API
python3 setup.py install --userHow to useOpen you'r Browser and go tohttps://prohosting24.de/cp/, the Cookie with name 'ph24_sessionid' contains the SessionID.fromprohosting24importApiapi=Api("You'r SessionID")Loginfromprohosting24importApi,loginapi=login("youremail@email.com","TypeInYourPassword")type(api)==ApiIf you want to save the api, you must saveapi.sessionid_authentication.Functions with object referencesFunctions, which begins with a@model_target(Model)are functions, which requires a object references.
Therefargument need's a integer id of the Model (in some casese, the model will be requested) or the model.
The Typehints will help you to see the argument types, for exampleUnion[VServer, int].
If themodel_targethas the attributeget_model, the model will be requested if you hand over the integer id.
Therefattribute has the typeModelReference.VServerVServer Model:classVServer(ProHosting24Model):expire_at:datetimedelete_at:datetimeserviceid:intstatus:strid:intnodeid:intuserid:intcores:intmemory:intdisk:intproxmoxid:strbackupslots:intbackuphour:intpacket:intimageid:intprice:floatdiscount:strcreated_on:datetimeip:intdaysleft:intuptime:inttimeleft:intGet a VServervserver=api.get_vserver(id_of_vserver)type(vserver)==VServerStart/Stop/Shutdown a VServerfromtimeimportsleepvserver=api.get_vserver(id_of_vserver)api.shutdown_server(vserver)sleep(10)api.start_server(vserver)sleep(10)api.stop_server(vserver)# stop means hard stop (not shutdown)Support systemModels:classSupportTicket(ProHosting24Model):"""Basic informations about a ticket."""created_on:datetimeid:intlast_answer:intserviceid:intstatus:inttitle:struserid:intclassSupportAnswer(ProHosting24Model):"""A answer to a ticket."""created_on:datetimeextern:intid:intmitarbeiter:intvorname:strnachname:strtext:struserid:intclassInspectedSupportTicket(SupportTicket):"""A support ticket with informations and answers."""answers:List[SupportAnswer]=[]Get own support ticketstickets=api.get_own_support_tickets()type(tickets)==List[SupportTicket]Inspect support ticketticket=api.inspect_support_ticket(ticket_id)type(ticket)==InspectedSupportTicket
Package: proigia_logstash_formatter
logstash formatterThis is a ‘reimplementation’ of the logstash handler to format messages to
a logstash json format. The original version (on which we are based) can be found at;https://github.com/exoscale/python-logstash-formatterUsageTo use this module, clone it via:git clone https://github.com/Proigia/proigia-logstash-formatter.git
cd proigia-logstash-formatterand thenpip install -e .In e.g. a pyramids configuration file the handler can be connected via the
following entry:[formatter_logstash]
class = proigia_logstash_formatter.ProigiaLogstashFormatterand connect it via all ‘relevant’ other logging settings, as documented by
pyramids;http://docs.pylonsproject.org/docs/pyramid/en/latest/narr/logging.html
Package: proj
A command-line folder manager for archiving and restoring a long-term set of projects.Free software: BSD licenseDocumentation:https://proj.readthedocs.org.projassumes the following working setup:You have a directory of active projects that you’re working on (e.g. ~/Projects)You have a directory of inactive projects, your archive (e.g. ~/Archive)Given this setup,projhelps you add and remove projects from your archive, and keeps your archive organised in<year>/<quarter>subfolders, based on when each project was last worked on.InstallationInstall the package with pip:pip install projThen, tellprojwhere your archive directory is, by creating a~/.proj.ymlfilearchive_dir: _archiveYou can enable compression for archives by adding more directives to the YAML file:compression: true
compression_format: bztarThe supported formats are:tar,gztar,bztarandzip.UsageUse proj to get rid of clutter in your main directory of projects by archiving ones that aren’t being worked on. Proj will detect when you last made a change and file it accordingly.$lscocktails-that-are-blue   news-for-llamas   old-crusty-project$projarchiveold-crusty-projectold-crusty-project -> /Users/lars/Archive/2012/q3/old-crusty-project$lscocktails-that-are-blue   news-for-llamas$projlist2012/q3/old-crusty-projectNow we’ve archived this project, but we can restore it at any time.$projrestoreold-crusty-project/Users/lars/Archive/2012/q3/old-crusty-project -> old-crusty-project$lscocktails-that-are-blue   news-for-llamas   old-crusty-projectFeaturesproj archive: archive a project to an appropriate directoryproj restore: restore a project from the archiveproj list: search the archive for a projectHistory0.2.0 (dev)Moved to Python 3.x only support to allow type hintingMove to a config file rather than environment variablesSupport compression for archiving and restoring0.1.0 (2014-01-11)First release on PyPI.Archive, restore and search features.
Package: projd
## IntroductionThis idea is inspired by Git and Django, which assume projects are organized
within a directory.  Many other applications and projects work this way, like
Ruby on Rails and Maven.Many projects, like source code repositories, web applications, etc., store
locations of code, configuration, scripts, virtual environments, etc., relative
to the root directory of the project or application.When a script, application, executable, binary, program, or command is
executed, it needs to find the root directory of the project it is supposed to
operate on.  For example,git statusonly works when called from within
a git repository.  Alternatively, a Djangomanage.pyscript can be run from
anywhere, yet it knows to operate on the web application it is located within.There are two sub-organizing principles seen in project commands, based around
how they find the root directory of the project:In the “cwd” approach, exemplified bygit, code and executables find the
project based on the current working directory.  For example, to work in a
git repository, one must firstcdto somewhere in the repository directory
tree.In the “which” approach, exemplified by a djangomanage.pyscript, code and
executables find the project based on the path of the executable itself.  For
example, a djangomanage.pyscript expects to be located in the root of
the project.An advantage of the “cwd” approach is that one set of binaries can be used
with multiple projects.An advantages of the “which” approach are that one can run the binaries from
anywhere.  Another advantage is that a different version of code/binaries can
be associated with each project.  This can be useful for deployments of
multiple version of an application.## ContributeFeel free to make a pull request on github.## RequirementsProbably Python 2.7 (since that is the only version it has been tested with.)## Installation### Install from pypi.python.orgDownload and install using pip:pip install projd### Install from github.comUsing github, one can clone and install a specific version of the package:cd ~
git clonegit@github.com:todddeluca/projd.git
cd projd
python setup.py installOr use pip:pip install git+git://github.com/todddeluca/projd.git#egg=projd## UsageThere are two functions for finding the root directory of a project based on
that root directory containing a specific token, a file or directory.  One
function works based on the current working directory.For example to find the root directory of a git repository one would do:import projd
root = projd.cwd_token_dir(‘.git’)To find the root directory of a project containing the script being executed
(similar to how a django manage.py file works), one would do:import projd
root = projd.script_token_dir(‘.git’)
Package: projdir
Typical usagePlace a file named.marker-filesomewhere in your file system.From the directory containing the.marker-file, or any (nested) subdirectory, you can now use useprojdirto find the path of the directory containing.marker-file:importprojdirimportwhatever_packagebase_dir=projdir.find(".marker-file")# returns a pathlib.Path objectindata_path=base_dir/"indata"output_path=base_dir/"result.csv"whatever_package.create_output_file(indata_path,output_path)MotivationLet's say you are building a Python application (script, command-line tool, whatever) that relies on file system inputs or outputs.The expected file inputs or outputs do not have a fixed path compared to the Python script, and you don't want to hard-code an absolute path to the working directory.This is similar to Git's.gitdirectory, which not only contains the repository database but also marks the root directory of the repository.More examplesMatch only files or only directoriesbase_dir=projdir.find(".marker-file",dir_ok=False)# Match only filesbase_dir=projdir.find(".marker-dir",file_ok=False)# Match only dirsFind a config fileSimple rule:projdir.find()always returns the containing directory. If you want the matching file or directory, this is easily done:CONFIG_FILE_NAME=".myappconfig"base_dir=projdir.find(".myappconfig",dir_ok=False)config_path=base_dir/CONFIG_FILE_NAMEUse a nested marker file or directoryprojdir.find(marker_relpath)always returns a directorybase_dirsuch thatbase_dir / marker_relpathexists. This holds even ifmarker_relpathis a nested relative path.# This will return the outer directory, the one that contains `subdirectory`base_dir=projdir.find("subdirectory/with/marker-file")Some technical detailsprojdir.find()always searches from the current working directory.If the marker cannot be found in the current working directory, the search continues step by step up the directory tree until the drive root, i.e. "/marker_relpath" on Unix or something like "C:\marker_relpath" on Windows.If the marker is not found, the customprojdir.MarkerNotFoundexception is raised.MarkerNotFoundis a subclass ofFileNotFoundError.projdir.find()always returns an absolute path. Finding the result relative to the current working directory, without resolving symlinks, would be a little more complicated. I cannot see a use case for relative paths, but if you do, feel free to get in touch.
Package: project-2023
Sending Notifications to Your Smartphone for Specific Keywords in EmailsThe project involves creating a program that reads gmail and sends notifications to your smartphone using slack when a specific keyword appears.OverviewThis idea came from the challenge of having to sort through many emails every day to find the important ones. Gmail already has a labeling function that classifies emails based on specific email addresses as filters. This project aims to create a function that sends notifications based on keywords using slack and smartphones. There is also potential to expand this project to find information in other ways besides just keywords.Dependenciesslack_sdkUsageQuick StartInstall the package:pipinstallproject_progressSet up your Slack webhook URL. Follow theseinstructionsto create a Slack webhook URL.Create a Python script and import the required functions:fromproject_progressimportread_email_titles,sendSlackWebhookUse the functions to read email titles and send Slack notifications based on specific keywords:email_titles=read_email_titles()keyword="important"fortitleinemail_titles:ifkeywordintitle:sendSlackWebhook("Keyword found in email title: "+title,webhook_url)Lint/TestTo run linting and tests, you need to have the following tools installed:Flake8 for linting
pytest for testing
Install them using pip:pipinstallflake8pytestLintingTo lint your code, run the following command in your project directory:flake8TestingTo run tests, execute the following command in your project directory:pytestFor more detailed usage instructions and available options, please refer to thedocumentation.
Package: project215-data-transformations
IntroductionIn this project, the goal was to build and publish a python package to PyPI via poetry.Data Transformations is a Python package that provides 3 functions for data transformation tasks. It includes functions for 2D matrix operations, 1D windowing, and 2D cross-correlation. This package is designed to help data scientists internally.InstallationYou can install Data Transformations usingpip:pipinstallproject215-data-transformationsUsageHere's how you can use the functions from Data Transformations in your Python code:fromproject215_data_transformationsimporttranspose2d,window1d,cross_correlation2d# Example usage of the transpose2d functionmatrix=[[1,2,3],[4,5,6],[7,8,9]]transposed=transpose2d(matrix)print(transposed)# Example usage of the window1d functiondata=[1,2,3,4,5,6,7,8,9,10]windows=window1d(data,size=3,shift=1,stride=1)print(windows)# Example usage of the cross_correlation2d functionimportnumpyasnpinput_matrix=np.array([[1,2,3],[4,5,6],[7,8,9]])kernel=np.array([[0,1],[1,0]])result=cross_correlation2d(input_matrix,kernel,stride=1)print(result)
Package: project4bim2022-g2
Projet-4bimThe goal of this project is to create a program that can generate a robot portrait of a presumed criminal thanks to the help of a witness. The program generates images of faces that evolve and go closest and closest to the suspect's face according to the witness's choices between displayed faces on the screen.InstallationRun this command on your terminal :if ssh :git clone git@github.com:Mathieu414/4bimProject_Group2.gitor if http :git clone https://github.com/Mathieu414/4bimProject_Group2.gitor download :https://github.com/Mathieu414/4bimProject_Group2/archive/refs/heads/master.zipThen follow the tutorial in the readme :https://github.com/Mathieu414/4bimProject_Group2/blob/master/README.mdThat will create a virtual environment and install all the modules necessary for the program to runDocumentationHTML files can be found in docs/build/htmlAuthorsGroup 2 4BIM:Ruth BENAYOUNNo챕mie GOEURIOTYasmine KAMILIMathieu PERRINSeungyun SHIN
Package: project-abdallahziad
Copyright (c) 2018 The Python Packaging AuthorityPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.