Saravanan666/pypi-org huggingface dataset:
Package: endjoy
endjoyCtrl-Z for the filesystemWhat is endjoy?Endjoy is a command line program that allows you to restore all the files in a directory to the state they were in some time ago. Therefore, it allows you to revert modifications, deletions and creations of the files in the watched directory.With this you can just try out any changes without fear, as you can always revert them with a single command.InstallsudopipinstallendjoyUsageejstart# Start recursively monitoring the working directory# Modify/create/delete some files or directories...ejrevert5m# Revert changes done in the last five minutesejrevert1h# Revert changes done in the last hourejcheckpointNAME# Checkpoint the current state of the directoryejcheckpoint# List all the stored checkpoints# Modify some more filesejrevertNAME# Revert the directory to how it was when the checkpoint NAME was createdejsuicide# Stop monitoring the directory and delete all temporary files createdWhat makes endjoy different from git?tl;dr: endjoy is git stash on steroidsThe most important difference between git and endjoy is that the latter runs in the background whereas git doesn't, this means that:Doesn't require setting explicit checkpoints as withgit commitRuns asynchronously, so you don't have to wait forgitto finishDoesn't require any action till you need to use it to restore a previous stateIf you need complex functionality, like merging different commits/checkpoints or moving forward and backwards between them, git is a better choice, as endjoy is much simpler and doesn't implement thatWhy is it called endjoy?DevelopmentInstall from source (requires poetry):# Optionalvirtualenv--python=python3venv
.venv/bin/activate# Requiredpoetryinstall# Runej# Run testspytestHow does it work?Onstartit spawns a process, that will act as the server, with two threads:One thread subscribes to be notified of changes on all the directories especified viainotifyand stores all the changes along with a timestamp in shared memoryAnother thread creates a named pipe and listens on it, when endjoy is called again with another command this thread performs whatever command was issued using the data that has been gathered by the first thread (inotify one)Authors@luis136and@corollariLicenseThe Unlicense
Package: endless-sky-parse
endless-sky-parseA working, tested Python conversion of the C++ parser for Endless Sky DataFilesHow to install$pipinstallendless-sky-parseHow to usefromendless_sky.datafileimportDataFilef=DataFile("/usr/share/games/endless-sky/data/human/ships.txt")it=f.root.filter(["ship","Blackbird"])ship=next(it)ship.children[0]# DataNode(tokens=['sprite', 'ship/blackbird'], children=[])next(ship.filter_first("description")).tokens[1][:80]# 'The Tarazed Blackbird is a high-class passenger transport, designed to move larg'Development$python-mvenvvenv&&.venv/bin/activate$pipinstall-rdev_requirements.txtRun tests with$pythonsetup.pytest
Package: end-of-file
End of fileEnd of file is formatter to ensure text files always end with one newline. Eof is able to resolve every possible situation - missing newline, more then one newline and whitespaces mixed with newlines. Simple configuration is done using parameters, no config file is needed.Configurable options:include or exclude hidden files (file or folders starting with dot)blacklisted strings that are found inside traversed pathswhitelisted extensionswhitelisted files that are registered with gitidentification of text files (mimetype or bruteforce)validation only mode for ci pipelinesThe code is short and dead simple so if you have more questions feel free to open an issue or take a look intosrc.InstallationEnd_of_file is python script and thus python3.6 or newer must be present on the system. Eof is just another pip package and can be installed withpip install end-of-file.UsageInstallation adds Eof to your environment so feel free to tryeof--helpTo format projecteof./projectIf you are using git and are concerned only about files that are registered to git following flag can be used. Git must be installed for this option to work.eof./project--gitTo format only specific extensionseof./project--extensions=txt,md,py,rb,cppTo check in ci/cd if project is formatted correctly, return 0 if yes, 1 if changes are needed. Files are not changed.eof./project--checkIn case you have for example build destination in your project and want to skip it you can use --ignore flag. Paths with substring from this option are skipped.eof --ignore /dist -i egg-infoCircleci job examplecircleci-job:docker:-image:circleci/python:3steps:-checkout-run:pip install end-of-file-run:eof --checkStrategiesEof needs to have a way to identify files that should be checked for correct newline. There are two options to choose from.Bruteforce (default)Bruteforce strategy just opens the file and tries to read first line, if that does not work it assumes the file does not contain text and is skipped. This should be the most precise but may take more time.eof--strategy='bruteforce'MimetypeMimetype strategy checks extensions against lookup table.eof--strategy='mimetype'TestingCode is fairly well tested, feel free to take alook.LicenseBSD 3-Clause
Package: endomill
endomillendomill lets a Jupyter notebook instantiate itself as a papermill template.Plays nice across both interactive and automatic (i.e., nbconvert, nbclient) contexts.Free software: MIT licenseDocumentation:https://endomill.readthedocs.io.Here’s what cells from a notebook using endomill might look like.importendomillInstantiate & execute this two copies of this notebook.endomill.instantiate_over(parameter_packs=[{'parameter':'value1'},{'parameter':'value2'},],)Supply papermill parameters.
(Remember to add notebook cell “parameters” tag for papermill.)# register papermill parametersparameter:strOverride automatic endomill instance output path, if desired.endomill.add_instance_outpath('custom_outpath.endomill.ipynb')Then do your Jupyter business as usual!print('hello',parameter)CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.0.0 (2022-02-22)First release on PyPI.
Package: endorlabs-atst
Endor Labs Automated Tool for Scanning Things (ATST)For use by Endor Labs customers and authorized usersSimplify deployment of Endor Labs into your CI.Quick StartIn your CI, set your namespace and auth variables per Endor Labs docs and:python3-mvenv../.atst
../.atst/bin/python3-mpipinstallendorlabs-atst
../.atst/bin/endorlabs-atstsetup
../.atst/bin/endorctlscan[OPTIIONS]Seeendorlabs/atst on GitHubfor more details
Package: endoscopy
EndoscopyUtilities for processing of endoscopic images.InstallationTo install, simply runpipinstallendoscopyExampleCheck out theexamples, runpythonimg_main.py# vid_main.pyCreditsIf you use this work as part of your project, please consider citing ourpaper@article{huber2021deep,title={Deep Homography Estimation in Dynamic Surgical Scenes for Laparoscopic Camera Motion Extraction},author={Huber, Martin and Ourselin, S{\'e}bastien and Bergeles, Christos and Vercauteren, Tom},journal={arXiv preprint arXiv:2109.15098},year={2021}}
Package: endoseg
DescriptionEndoseg is a Python package that facilitates the segmentation of the visible circular area of endoscopic images.Install dependenciesNumpy# Ubuntu/Debian$sudoaptupdate
$sudoaptinstallpython3-pip
$python3-mpipinstallnumpy--userOpenCV# Ubuntu/Debian$sudoaptupdate
$sudoaptinstalllibopencv-devpython3-opencvInstall with pip$python3-mpipinstallendoseg--userInstall from source$gitclonehttps://github.com/luiscarlosgph/endoseg.git
$cdendoseg
$python3setup.pyinstall--userRun$gitclonehttps://github.com/luiscarlosgph/endoseg.git
$cdendoseg
$python3-mendoseg.run--inputdata/demo.jpg--output-segdata/demo_seg.png--output-cropdata/demo_crop.jpgInput imageOutput segmentationOutput cropNote that theoutput cropis a square cut of the area within the segmentation mask.Exemplary code snippet# Read input imageim=cv2.imread('input_image.jpg',cv2.IMREAD_UNCHANGED)# Segment the visible area of the endoscopic imagesegmenter=endoseg.Segmenter()seg=segmenter.segment(im)# Save the segmentation to filecv2.imwrite('output_segmentation.png',seg)# Get a rectangular crop of the visible areacrop=segmenter.get_rect_crop(im)# Save the crop to filecv2.imwrite('output_crop.jpg',crop)LicenseThis code is released under anMIT license.
Package: endpoint-api-client
# endpoint-api-clientAll commands have to be run in project root directory:cd banks_storage/## Installationpip install endpoint-api-client## Usage
from client import StorageAPIyour_api_url_endpoint = ‘http://something.com/collection/’headers = {**StorageAPI.DEFAULT_HEADERS, ‘foo’: ‘bar’,}  # optionalstorage_client = StorageAPI(your_api_url_endpoint, headers)#### GET
# Methods returns “requests.Response” instancesget_response = storage_client.get_documents()#### POST
your_document = {‘field’: 1, ‘another_field’: [‘baz’, ‘bar’,]}post_response = storage_client.post_document(some_doc)
Package: endpointsorter
Url Endpoint SorterThis Python script is designed to sort and extract unique URL prefixes from a given input file. It can be particularly useful for analyzing and organizing a list of URLs based on their common prefixes.UsagePrerequisitesPython 3.xInstalling the ToolTo use the tool, Install via pip:pip install endpointsorterRunning the ScriptTo use the script, follow these steps:endpointsorter -i input_file.txt -o output_file.txtReplacescript_name.pywith the actual name of the script,input_file.txtwith the path to your input file containing URLs, andoutput_file.txtwith the desired output file path.Command-Line Options-i, --input: Specify the input file containing URLs. This option isrequired.-o, --output: Specify the output file where sorted URL prefixes will be saved. This option isrequired.Exampleendpointsorter -i input.txt -o output.txtDescriptionThe script utilizes regular expressions to extract URLs from the input file and then sorts and extracts unique prefixes. The sorted prefixes are saved to the specified output file. This can be helpful for understanding the structure and organization of URLs in a given dataset.Error HandlingThe script includes basic error handling to manage interruptions and unexpected errors during execution. If an error occurs, an error message is displayed, and the script exits with an error code.AuthorPraveenFeel free to modify and enhance this script according to your specific requirements. If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request.
Package: endrpi
Endpoints for Raspberry Pi (Endrpi) is a web API server for theRaspberry Pithat provides basic statuses and GPIO controls through a collection of HTTP endpoints.Powered byFast API,GPIO Zero,
andothers.FeaturesREST APIReads system statuses such as temperature, memory usage, throttling, etc.Reads/updates GPIO pin state, function, and pullGenerates interactive documentation viaSwagger UIWebsocketMaintains a persistent, low-latency connectionMirrors the REST API through a request/response action patternRequirements≥ Python 3.7≥ Raspberry Pi 3Compatible with the standardRaspberry Pi OSimagePrevious Raspberry Pi versions may work but have not been verifiedQuickstartpip3 install -U endrpi && endrpiProject documentationProject documentation is hosted athttps://endrpi.io.The project documentation source can be found athttps://github.com/persanix-llc/endrpi-docs.LicenseLicensed under the Apache License, Version 2.0.Copyright © 2020 - 2021 Persanix LLC. All rights reserved.
Package: endstone
EndstoneWrite your plugins in Python and C++ for Bedrock Dedicated Servers.📄 Table of Contents📖 Introduction🛠️ Installation🙌 Contributing🎫 License📖 Introduction🔝Wre are excited to announce the Endstone project. Endstone offers a plugin API for Bedrock Dedicated Servers, supporting
both Python and C++ languages. This allows developers to enhance Bedrock Dedicated Servers with various features and
functionalities.Build StatusSystemBuild StatusWindows x86_64Linux x86_64WheelDocker🛠️ Installation🔝Before proceeding with the installation process, verify that you are using one of the following compatible operating
systems:Windows 10 or higherWindows Server 2019 or higherDebian 11 or higherUbuntu 20.04 or higherPlease also ensure you havePython 3.9 or higherinstalled on your system.There are several ways to install Endstone:🐍 PyPiEndstone can be installed from PyPi using pip. Open your terminal and execute the following command to install:pipinstallendstone🔨 Build locally from SourceYou also have the option to build Endstone locally from the source.First, clone the repository:gitclonehttps://github.com/EndstoneMC/endstone.gitcdendstoneThe Endstone project uses Conan as the package manager. After successfully cloning the repository to your local system,
the next step will involve the installation of conan.pipinstallconan
conanexportthird_party/funchook--version1.1.3
conaninstall.--build=missingPlease note that building from source requires toolchains to be installed on your system.WindowsLinuxBuild SystemCMakeCMakeGeneratorNinjaNinjaC/C++ Compiler(Recommended)MSVC 193 (Visual Studio 2022)Clang 15C/C++ Compiler (Minimum)MSVC 191 (Visual Studio 2017)Clang 5Standard LibraryMSVC STLlibc++Finally, you can build the wheel and install it on your local machine:pipinstall.🐳 DockerTo try Endstone from a Docker image, use the following command:dockerpullendstone/endstone
dockerrun--rm-it-p19132:19132/udpendstone/endstoneordockerpullghcr.io/endstonemc/endstone
dockerrun--rm-it-p19132:19132/udpghcr.io/endstonemc/endstoneThis will pull the latest Endstone image and run it interactively in your terminal.🙌 Contributing🔝We warmly welcome contributions to the Endstone project! If you're enthusiastic about enhancing Bedrock Dedicated
Servers with Python and C++ and have ideas on how to improve Endstone, here are a few ways you can contribute:Reporting BugsIf you encounter any bugs while using Endstone, please open anissuein
our GitHub repository. Ensure to include a detailed description of the bug and steps to reproduce it.Submitting a Pull RequestWe appreciate code contributions. If you've fixed a bug or implemented a new feature, please submit a pull request!
Please ensure your code follows our coding standards and include tests where possible.🎫 License🔝The Endstone project is licensed under theApache-2.0 license.
Package: endstone-plugin
Endstone Python Plugin TemplateWelcome to the official Python plugin template for Endstone. This repository provides a basic structure and a sample
plugin to help developers start writing plugins for the Bedrock Dedicated Servers in Python using the Endstone API.PrerequisitesPython 3.9 or higher.Endstone installed and set up in your Python environment.Structure Overviewpython-plugin-template/ 
├── src/                          # Main source directory 
│   └── endstone_plugin/          # Directory for the plugin package 
│       └── __init__.py           # Initializer for the package, containing SamplePlugin class 
├── .gitignore                    # Git ignore rules
├── CHANGELOG.md                  # Changelogs
├── LICENSE                       # License details
├── README.md                     # This file
└── pyproject.toml                # Plugin configuration fileGetting StartedClone this Repositorygitclonehttps://github.com/EndstoneMC/python-plugin-template.gitNavigate to the Cloned Directorycdpython-plugin-templateConfigurateOpen thepyproject.tomland change thenameunder the[project]section fromendstone-pluginto your own
name for your plugin.Rename the foldersrc/endstone_plugintosrc/{your_plugin_name}.Rename thePythonSamplePluginclass withinsrc/{your_plugin_name}/__init__.pyto, for example.Open thepyproject.tomlagain and update the entrypoint under the[project.entry-points."endstone"]section.Test Your PluginWhen developing the plugin, you may want to install an editable package to your Python environment, this allows you
to update the codes without having to reinstall the package everytime:pipinstall-e.NOTE: It is strongly recommended to create a virtual environment for your Endstone server and plugins. When
installing your plugin usingpip install, please ensure the virtual environment is activated.Ensure your plugin is loaded correctly by checking the server logs or console for the log messages.Package and Distribute Your PluginWhen everything is good to go, you can package your plugin into a.whl(Wheel) file for easier distribution:pipinstallwheel
python-mpipwheel.--no-deps--wheel-dir=wheelhouseThis command will produce a.whlfile in thewheelhousedirectory which can be installed. To publish your plugin
to a package index such as PyPI, please refer to:Using TestPyPIPublishing package distribution releases using GitHub Actions CI/CD workflowsLicenseThis project is licensed under the MIT License - see theLICENSEfile for details.
Package: endterm
AITU ENDTERMСоздаете папкуЗакидывайте весь архив с гугл дискаУстанавливайте тулзуpipinstallendtermСоздаете файл name.py в этом файле прописываете кодimportendterm.classesasclscls.ZipExtract()# Вытащить из архива все файлы и создать папку temp и туда все сохранить# Для расширения xlsxls=cls.XLSReader('2019','Название','C:\\Users\\mk_mu\\Desktop\\assignment3\\temp\\ТЗА 2019\\ТЗА Астана ноябрь 2019.xls')# для мака / в путиxls.select_worksheet(3)# выбираем от 0 до 3xls.create_dataframe()# создает DataFramexls.dataframe# после создания можете использоватьxls_new_dataframe=xls.to_dataframe()# возвращает DataFramexls_new_dataframe# работаете с новым DataFrame# Для расширения xlsxxlsx=cls.XLSXReader('2019','Шаблон','C:\\Users\\mk_mu\Desktop\\assignment3\\temp\\ТЗА 2020\\ТЗА Август 2020.xlsx')# для винды \\ в путиxlsx.select_worksheet(1)# выбираем от 0 до 3xlsx.create_dataframe()# Создает DataFramexlsx.dataframe# после создания можете использоватьxlsx_new_dataframe=xlsx.to_dataframe()# возвращает DataFramexlsx_new_dataframe# работаете с новым DataFrameсоздаете DataFrame и работаете только с данными.
Package: endurance-etl
endurance_etlPolars and duckdb based json configured simple ETL pipelinesWARNING: PLACEHOLDER FOR LATER DEVELOPMENTIntroductionUse endurance_etl to execute some simple ETL pipelines:importjsonfromendurance_etlimportTarsCONFIG="sample.json"withopen(CONFIG)asf:print(json.load(f))# Output:{"SOURCES":[{"name":"csv_file_source","path":"csv_file_source.csv",# ...other_kwargs}],"TARGETS":[{"name":"csv_file_target","source":"source/csv_file_source","target":"csv_file_target.csv","transforms":[{"function":"lambda df: df + 1"}]# ...other_kwargs}]}tars=Tars.from_json(CONFIG)tars.do()
Package: enedisgatewaypy
enedisgatewaypyFEtch date Enedis Linky from enedisgateway.tchCheck your config, enable or disable heater, change preset mode.InstallUse the PIP package manager$pipinstallenedisgatewaypyOr manually download and install the last version from github$gitclonehttps://github.com/cyr-ius/enedisgatewaypy.git
$pythonsetup.pyinstallGet started# Import the enedisgatewaypy package.fromenedisgatewaypyimportEnedisGatewayClientasyncdefmain():api=EnedisGatewayClient("pdl","token")devices=awaitapi.async_get_devices()fordeviceindevices:name=device.get("dev_alias")data=awaitapi.async_get_device(device["did"])mode=data.get("attr").get("mode")logger.info("Heater :{}, mode :{}".format(name,mode))loop=asyncio.get_event_loop()loop.run_until_complete(main())Have a look at theexample.pyfor a more complete overview.Notes on HTTPSNot implemented
Package: energenie
Python module to control theEnergenieadd-on board for theRaspberry Piused for remotely turning power sockets on and off.InstallationOn Raspberry Pi, install the energenie module in pip.Python 3:sudo apt-get install python3-pip
sudo pip-3.2 install energeniePython 2:sudo apt-get install python-pip
sudo pip install energenieUsageExample usage:from energenie import switch_on, switch_off
from time import sleep

# turn all plug sockets on and off
switch_on()
switch_off()

# turn a plug socket on and off by number
switch_on(1)
switch_off(1)

switch_on(3)
switch_off(3)

# turn some plug sockets on, then turn them off after 10 seconds
switch_on(1)
switch_on(4)
sleep(10)
switch_off(1)
switch_off(4)ContributorsBen NuttallAmy MatherGordon HollingworthOpen SourceThe code is licensed under theBSD LicenceThe project source code is hosted onGitHubPlease useGitHub issuesto submit bugs and report issues
Package: energicity
Package Structureenergicitysrchello.pypowerleone.pysetup.pyenergicityis the main package name and here is how you install the package:pipinstallenergicityhellohello is a testing modul you use it by import it or import it's component, it's located in thesrsdirectoryimporthelloorfromhelloimporthellopowerleonepowerleone contain all of the useful functionality for powerleone subsidery of EnergiCity in Sierra Leone, mostly this will be different than others because it will be in English and use PowerLeone technology like Africell SMS Gateway.
Package: energon
A service framework for large-scale model inference, Energon-AI has the following characteristics:Parallelism for Large-scale Models:With tensor parallel operations, pipeline parallel wrapper, distributed checkpoint loading, and customized CUDA kernel, EnergonAI can enable efficient parallel inference for larges-scale models.Pre-built large models:There are pre-built implementation for popular models, such as OPT. It supports the cache technique for the generation task and distributed parameter loading.Engine encapsulation：There has an abstraction layer called engine. It encapsulates the single instance multiple devices (SIMD) execution with the remote procedure call, making it acts as the single instance single device (SISD) execution.An online service system:Based on FastAPI, users can launch a web service of the distributed infernce quickly. The online service makes special optimizations for the generation task. It adopts both left padding and bucket batching techniques for improving the efficiency.For models trained byColossal-AI, they can be easily transferred to Energon-AI.
For single-device models, they require manual coding works to introduce tensor parallelism and pipeline parallelism.InstallationpipinstallenergonaiGithub Repohttps://github.com/hpcaitech/EnergonAI