Saravanan666/pypi-org huggingface dataset:
Package: pyloading-bar
PyloadingHow to installJust use pip:$pipinstallpyloading-bar==0.0.2How to useFor now pyloading_bar is a very simple package to draw a simple progress bar in the terminal:There's two versions of the bar. The Bar (most simple version of the bar):frompyloading_barimportBarnumber_of_steps=2bar=Bar(number_of_steps)# do somethingbar.next()# do somethingbar.next()The usual bar is like this:[##########]And the RangeBar, this object is created to be used just like an interator on the for loop:frompyloading_barimportRangeBarforiinRangeBar(10):print(i)You can chage the bar by the symbol parameter:frompyloading_barimportRangeBarnumber_of_steps=10forstepinRangeBar(number_of_steps,symbol='@'):print(step)now the bar look like this:[@@@@@@@@@@]or a full string and it'll iterate thru the string to display inner steps:frompyloading_barimportRangeBarnumber_of_steps=10forstepinRangeBar(number_of_steps,symbol='▁▂▃▄▅▆▇█'):print(step)now the bar look like this:[█▇        ]if you want to change the walls of the bar, you can use the template parameter:
with the template youMUSTuse some char at the begining and at the end of the bar.frompyloading_barimportRangeBarnumber_of_steps=10forstepinRangeBar(number_of_steps,template='|▁▂▃▄▅▆▇█|'):print(step)now the bar look like this:|█▇        |And if you want that the terminal don't update the last line with the new progress bar state (the progress bar assume by default that you don't print anything to the terminal), just say to the progress bar print a new line to each step:frompyloading_barimportBar# The paramenter "symbol" change the character used into the loading barnumber_of_steps=10forstepinRangeBar(number_of_steps,symbol='@',update_terminal=False):print(step)ContributorsMade withcontrib.rocks.
Package: py-load-lib
Py-LoadA super simple, compact, and easy to use loading bar module for python with no dependencies.Quick StartYou can super quickly make a loading bar by using Smartbars like so:frompy_loadimport*foriinSmartbar(range(1000)):# do stuffprint("Done!")InfoOther Loading BarsPy-load isn't the best option for style or for features. Py-load is meant to be simple, not flashy.It's also just one dude working on it, so it's harder to maintain.If you want a more complexCodebase Wisebut well documented and fleshed out usetqdm.If you want something that looks absolutely awesome, usealive-progressSeriously their bars look really cool!Py-loadPy-load is a simple python package that allows you to very easily add loading bars to your CLI app.Py-load is very lightweight, and requires no other dependencies, and is also fairly customizable.It uses modern python features to make the code organized and maintainable.This whole repository is some what of a learning project.
So I may goof up every now and then since I am not very experienced with Github and all of its features.That's why you may see some strange commits every now and then. Sorry!Note: I will do my best to keep thecodeitself clean and organizedRequirementsPy-load only needsPython3.6 or higher, as it uses Python 3 features.Tested Python Versions3.103.93.8InstallingInstalling from sourceDownloadpy_load.pyand put it in your projects source folder, and then your done!This will give you the newest features, but it may be unstable.Installing with PipYou can also use pip to install it by doingpip install py-load-libThis will usually be fairly stable and robust, however it is updated a little slower.UsageSee theWikifor info on usage.CreditsContributors:Talwat(creator/lead maintainer)Nobody else for now :(ContributingIf you want to contribute you can either open a PR or you can open an issue.Some useful things you could do is:Test py-load with different python 3 versionsSuggest new featuresContribute code and fix bugs
Package: pyloadlimiter
Py Load LimiterA highly configurable, feature-packed, variable-request-sized load limiter python module.FeaturesSliding window/buckets algorithmLimit amount of 'load' instead of simply limiting the number of requests by allowing load-aware requestsUse with direct apis, as context manager or as decoratorSupport for automatic retry, delay or timeout on load requestsAutomatically compute TTA (time-to-availability) to easily give clients an amount of time to wait before resubmissionsConfigurable penalties for over-max-load requests and for uncompliant clients who do not respect the required delaysComposite load limiter to allow for complex load limiting with a single instance (eg. long-time rate limiting together with burst protection)Configurable window fragmentation for optimal smoothness vs performance tuningPluggable and customizable storage adapters to allow for easy persistence
Package: pyLoadModularJson
pyModularJSONAllows recursive loading of JSON files featuring comments.
Now uses json5 so it is a bit less picky on line terminationsAuthored by Edwin PetersInstallpip install pyLoadModularJsonorsetup.py installUsageAlso checktestsfolder for a few examplesbase.json:// comments
{
    "param2a": 2,
    "nestedParam2a":{
	"a": "notaNumber",
	"c": "set by base"
    }
}main.json:// comments
{
    "configBase": ["base.json"], // parent config file name relative to this file
    "param1": 4,
    "nestedParam1":{
	"a":39,
	"b":["peee","e","new"],
	"c": "set by main"
    } 
}In Python:from pyLoadModularJson import loadModularJson

cfg = loadModularJson('base.json')

print(cfg)Child files will overwrite attributes from base files.See more examples intests
Package: pyloadnprep
pyloadnprep v.0.0.3주가 데이터를 불러오고, 전처리하는 패키지입니다. 시계열 분석을 할 때 한 번에 데이터를 불러오고 전처리할 수 있게 구현하였습니다.공지현재 Windows에서만 바로 사용이 가능하고, 다른 os의 경우 locale을 한국어로 설정해야 하는 문제가 있습니다.설치pipinstallpyloadnprep기능확인print(help(pyloadnprep))종목코드 확인frompyloadnprep.preprocessingimportget_stockcode데이터 불러오기1. 거시 지표2. 종목별 주가 데이터frompyloadnprep.preprocessingimportmake_datasetmake_dataset(stock_code,start_date='20000101',end_date=today)OHLCV 데이터를 데이터 프레임으로 불러옵니다. 기본 설정은 2000년 1월 1일부터 오늘까지의 데이터를 불러옵니다.3. 종목별 기본 지표frompyloadnprep.preprocessingimportfundamental_analysisfundamental_analysis(ticker,start_date='20000101',end_date=today)종목별 BPS, PER, PBR, EPS, DIV,	DPS를 데이터 프레임으로 불러옵니다.전처리1. 종목별 기술 지표frompyloadnprep.preprocessingimporttechnical_indicestechnical_indices(df)종목별 주가 데이터를 기술 지표들로 변환하여 데이터 프레임으로 반환합니다. 현재 지원하는 기술 지표들은 sma5, ema5, ema20, disparity, Slow_k, Slow_d, MACD, RSI, Diff입니다.2. Fourier Transform통계적 타당성 검증(추후 추가)
Package: pyloadprofilegenerator
pyLPGThis package provides bindings and binaries to execute theLoadProfileGenerator(LPG) from python.Basically itconverts your settings into a JSON file for the LPG that specifies what the LPG should calculate,starts the binary depending on your platform (Windows/Linux),waits for the results,and then returns the results as pandas dataframe.Look into thesingle household examplefor a simple example on use.Example of a generated electricity load profile as a carpet plot:Note that this package downloads the full LPG binaries and the database on first use.If you want to use a different database than the one that comes with the package, you need to replace the files.InstallationThis package can be installed via pip:pip install pyloadprofilegeneratorLicenseMIT LicenseCopyright (C) 2022 Noah Pflugradt (FZJ IEK-3), David Neuroth (FZJ IEK-3), Peter Stenzel (FZJ IEK-3), Leander Kotzur (FZJ IEK-3), Detlef Stolten (FZJ IEK-3)You should have received a copy of the MIT License along with this program.
If not, seehttps://opensource.org/licenses/MITCitingIf you use pylpg in a published work, please cite:Noah Pflugradt, Peter Stenzel, Leander Kotzur, and Detlef Stolten (2022). LoadProfileGenerator: An Agent-Based Behavior Simulation for Generating Residential Load Profiles. Journal of Open Source Software, 7(71), 3574,https://doi.org/10.21105/joss.03574About UsThe package is mainted by theInstitute of Energy and Climate Research â€“ Techno-Economic Systems Analysis (IEK-3)belonging to theForschungszentrum JÃ¼lich.ContributingWe need your help to make pyLPG an even better tool than it is. Please raise an issue, if it is not clear how to use the package, if you find a bug, or if you have an idea how to improve. If you have implemented a solution, you are invited to contribute with a pull request.
Package: pyloadprojects
PyLoadProjectsA simple installer of the program. Many probably know that it is possible to convert .py files to .exe, but what if the project includes not only modules and python files used.pip install pyloadprojectsFirst you need to have a Zip folder with your finished project to copy. Import the module, specify the parameters in the pyload function.importpyloadprojectsasplpplp.pyload("MyProgram",# project name"MyProgram.zip",# the path to the Zip folder"C:\\Program Files\\MyProgram\\MyProgram.exe"# the path to the executable file)And now a folder with the name of your project will be created in the current directory.importmyprogramasmpmp.install()Import the module with the name of your project and run the "install" function.How does it work?All your files need to be compressed into a ZIP file, then this file is copied and embedded in Python code. When you run the program, a ZIP file is created on your PC and extracted with your files.
Package: pyloan
PyLoan is a Python package designed to provide a lightweight and flexible tool to perform mortgage/loan calculations, including:Calculate payment amount to fully amortize a mortgage/loan over its term.Amortize a mortgage/loan based on the specified payment schedule.Consider ad-hoc or periodic special principal repayments during the mortgage/loan amortization schedule.Calculate interest payments using either 30/360 methods or actual methods.Consider interest-only payment periods.InstallationPyLoan is distributed on PyPI and can be installed withpip:$ pip install pyloanFor more information, read the documentation oninstalling the package.QuickstartRead theQuickstartguide to see illustrative examples on how to get started using PyLoan to perform mortgage/loan calculations.SupportReport bugs via the bug tracker onGitHub.LicensePyLoan is licensed under theMIT License.
Package: pyloans
pyloans: A simulator for installment based financial obligationsIntroductionpyloansis a python based package to simplify, analyze and work with
installment based loan obligations. The installments are generally a fixed
amount that the borrower pays to the lender at equally spaced intervals
over the life of the loan.The pyloans package is written with both the borrowers (end-consumer) and
lenders (financial institutions) in mind.From a borrower's perspective the package offers the following functionality:Original schedule of CashflowsModified schedule of Cashflows, in case of additional payments or full
pre-paymentUpdated date of maturity based on additional payments madeAnnual Percentage Rate (APR)From a lenders perspective the package offers the following functionality:Weighted average life of a loan (WAL)Please seeQuickstart guidefor basic functionality of the
package.
Package: pylobby
pylobby - Distributed chat systempylobby is a distributed chat system written in Python and ZeroMQ.pylobby is Open Source and licensed under theBSD License.RequirementsPython 2.7.x or 3.xpyzmqContributionspylobby is hosted on Github.
Please contribute by reporting issues, suggesting features or by
sending patches using pull requests.InstallationThe easiest way to install pylobby is by usingpip:$pipinstallpylobbyIn order to install the latest version of pylobby from the
Github repository simply execute these commands instead:$gitclonehttps://github.com/dnaeon/pylobby.git$cdpylobby$pythonsetup.pyinstallExamplesTo be added.
Package: pylobid
pylobidpylobidis a  LOBID-REST-API client.Lobidis a web service providing data from theGND- Gemeinsame Normdatei of the German National Library.Free software: MIT licenseDocumentation:https://pylobid.readthedocs.io.FeaturesHarmonize GND-URIs and URLSwrap up several LOBID-API requests in a single methodsValidate inputs from WTForms against the LOBID-APICreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History1.1.0 (2020-07-16)added aPylobidPlaceclass1.1.0 (2020-07-16)added aPylobidPlaceclassaddedsame_asandpref_nameproperties toPyLobidPersonandPyLobidPlaceclasses1.0.0 (2020-07-07)RenamedPyLobidEntitytoPyLobidPersonintroducedfetch_relatedpropertyadded Usage-Information to the docs0.2.2 (2020-06-30)Some useful methods added.0.2.1 (2020-06-23)Some useful methods added.0.1.0 (2020-06-21)First release on PyPI.
Package: py-local
Work with your local network easilyProject's wikior:git clone https://github.com/codelao/py-local.wiki.gitContentsHomeWelcome to py-local's wiki!DescriptionGetting startedUsageGetting current local IPv4 addressGetting current local IPv6 addressGetting current active Wi-Fi or Ethernet interfaceGetting status of network interfaceNotesInstallationInstall via pip
Package: pylocalc
This project is no longer maintained!Sorry...PyLOcalcPython interface for manipulating LibreOffice Calc spreadsheetsDISCLAIMER: This is not production software! Backup your document before trying it!AboutLibreOffice/OpenOffice has API for many languages including Python, thanks to the Universal Network Objects (UNO).But its API is all butPythonic!I took inspiration fromthis articleand created simple wrapper around this API.PyLOcalc also automatically opens a headless LibreOffice Calc document with basic read, write, and save functionality.
Therefore, it can be used as a library for other scripts that manipulate spreadsheets.Requirementspython>=3.8You have to have LibreOffice with "python support" installed.
In Ubuntu it's (apparently)sudo apt install libreoffice-script-provider-python,
in Arch Linux I didn't have to do anything.You can try runningpython -m unoand it should not produce any output or error.Macro security - Medium. Followthis article.InstallationpipinstallpylocalcBasic usageimportpylocalcdoc=pylocalc.Document('path/to/calc/spreadsheet.ods')# You have to connect firstdoc.connect()# Get the sheet by indexsheet=doc[2]# Or by namesheet=doc[doc.sheet_names[1]]# Get the cell by indexcell=sheet[10,14]# Or by "name"cell=sheet['B12']# Read and set cell valueprint(cell.value)>'Some value'cell.value=12.2print(cell.value)>'12.2'cell.value='Other value'print(cell.value)>'Other value'# Don't forget to save and close the document!doc.save()doc.close()Append rows and columnsPyLOcalc can append row and column values to the first available row or column.
It looks at the cell at theoffset(default 0) and if the cell is empty it adds values there.importdecimalimportpylocalcdoc=pylocalc.Document('path/to/calc/spreadsheet.ods')doc.connect()sheet=doc['Totals']sheet.append_row(('2021-01-01',123,12.3,decimal.Decimal("0.111"),'Yaaay'),offset=1)sheet.append_column(('New column header'))doc.save()doc.close()Context managerPyLOcalcDocumentcan be used as context manager that automatically connects and closes the document.
If no error is raised in the context block it alsosaves the document.importpylocalcwithpylocalc.Document('path/to/calc/spreadsheet.ods')asdoc:doc[0][1,10].value='I ❤️ context managers'
Package: pylocaldatabase
Python Local DatabaseA python package made to simplify the use of json as a mean to organize and store data in python.InstallationUse the package managerpipto install Python Local Database.Linux/macOS:pipinstallpylocaldatabaseWindows:py-mpipinstallpylocaldatabaseRelease history and file downloads can be foundon the project's pypi page.Usage# import libraryfrompylocaldatabaseimportpylocaldatabase# define database file and assign databasecontroller instance to var dbcontrolldbcontroll=pylocaldatabase.databasecontroller(path="file.json")# load data from filedbcontroll.load()# create database file 'file.json'dbcontroll.makeDatabase()# creating documentdbcontroll.insertDocument({},"documentName")# assigning document to a vardocument=dbcontroll.getDocument("documentName")# inserting Item in the documentdocument.insertItem("ItemName",{"Property":"Property Value"})# reading Item dataitemData=document.getItem("ItemName").get()# assigning item to varitem=document.getItem("ItemName")# inserting new property in Itemitem.insertProperty("Property Name","Property Value")# removing property from itemitem.removeProperty("Property Name")# removing item from documentdocument.removeItem("ItemName")# save datadbcontroll.save()ExamplesExamples can be foundhere.CryptographyAn example on how to use the built-in Cryptography functions, you can refer toExample 2.ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT
Package: pylocale
pylocaleA Python 3 library that allows adding static files with translations to the application, and then apply them to dynamically change text in the application.InstallingPython 3.6.9 or higher is recommendedTo install the library, you can just run the following command:# Linux/macOSpython3-mpipinstallpylocale# WindowspipinstallpylocaleTranslation filesYou must provide a folder in your project directory where your translation files will be located.your-app-root
|--translations
   |----en-us
   |----de-de
   |----zh-cn
   ...
...The struture can be any, but the translation files must be accessible from the program.
Translation files must be text files of .env-like format<KEY> = <TRANSLATION>(spaces are required or you will get a parsing error):# en-us file example
HELP = Get help
SETTINGS = Settings
EXIT = Exit# de-de file example
HELP = Hilfe bekommen
SETTINGS = Einstellungen
EXIT = AusfahrtIt's recommended for the translation files to have the same keys, but it's not necessary.UsageYou can use pylocal as follows:frompylocalimportPyLocaltranslator=PyLocal(at='translations/',# Your translations directory path.root='en',# Default locale.silent=True# Tell PyLocal not to raise exceptions in case of errors.)To get translation:translator['HELP']# >>> HelpTo switch to another locale:translator.switch('de-de')translator['HELP']# >>> Hilfe bekommenAny translation you switch to covers the root translation file. That means If there was no help key, it would be taken from the root translation file:# en-us file example
HELP = Get help
SETTINGS = Settings
EXIT = Exit
COLOR = Color# en-gb file example
COLOR = Colourtranslator=PyLocale(at='transaltions/',root='en-us')tanslator['COLOR']# >>> Colortranslator.switch('en-gb')tanslator['COLOR']# >>> Colour# SETTINGS is not defined in en-gb. It will be taken from en-us, which is the root translation file.tanslator['SETTINGS']# >>> SettingsRaising exceptionsIf the silent mode is turned off (default) your app will break down with exceptions in case of errors. If you want the translator to try to return something, you may pass a True to silent parameter as shown above. In that case, the translator will return an empty string.translator=PyLocale(at='transaltions/',root='blablabla',silent=True)tanslator['SETTINGS']# >>> ''
Package: pylocalsmtp
PyLocalSmtpPyLocalSMTP permet de recevoir les emails envoyés lors de dévelopement local sur une interface web. L’avantage est de pouvoir lire plus facilement les messages envoyés que dans le terminal.Initialement inspiré depython -m smtpd -n -c DebuggingServer localhost:1025cette application utilise Tornado, smtpd.SMTPServer, sockjs, SQLite et AngularJS.[![Build Status](https://drone.io/bitbucket.org/m_clement/pylocalsmtp/status.png)](https://drone.io/bitbucket.org/m_clement/pylocalsmtp/latest)Installpip install pylocalsmtpRunLancer la commande suivante :pylocalsmtpdLe serveur SMTP sera lancé en localhost sur le port 1025Tornado sera lancé sur l’adresse :http://127.0.0.1:8888/Plus d’options à venir.RequirementsCes prérequis sont installés automatiquementpeewee==2.2.2https://github.com/mrjoes/sockjs-tornadotornado==3.2LICENCEThe MIT License (MIT)Copyright (c) 2013 Martyn CLEMENTPermission 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.CONTRIBUTIONSi cette idée vous plait ou vous déplait, vous pouvez contribuer ou m’envoyer des bières.CHANGES2014-04-09 - 1.0.0Refactored all the client sideUse of AngularJS instead of jQueryUse PureCSS framework and awesome inbox templateFixed a sqlite crash with multithreadFixed the multithread kill when pressing Ctrl+C2014-04-08 - 0.5.0Updated requirements versions (tornado and peewee)2013-08-28 - 0.4.1Added this CHANGE fileThe mail Queue is now empty once, not through the ioloopThe sqlite database is now stored under ~/.pylocalsmtp/inbox.dbFix : 404 error faviconRemoved unnecessary mail primary key on the mail list
Package: pylocalstorage
PylocalstorageA package to store data on the hard disk (HD) and make it available to all Python applications running locally!Version based on thepickle module. The pickle module implements binary protocols for serializing and de-serializing a Python object structure.InstallationSimply installpylocalstoragepackage fromPyPI$pipinstallpylocalstorageExamples>>>frompylocalstorageimportLocalStorage>>>ls=LocalStorage()>>>ls.setItem("name","David")>>>ls.setItem("age",29)>>>ls.setItem("address",{"country":"Brazil","city":"Manaus"})>>>ls.length3>>>ls.setItem("name","David Ferreira")>>>ls.getItem("name")'David Ferreira'>>>ls.removeItem("name")>>>importnumpyasnp>>>ls.setItem("array",np.zeros((1080,1920,3),dtype=np.uint8))>>>foriinrange(ls.length):...print(ls.key(i))...'address''age''array'>>>ls.clear()>>>ls.length0
Package: py-localtunnel
py-localtunnellocaltunnel client in python.Finally py-localtunnel is here. Now you can install below command.Installationpip3installpy-localtunnelUsagepyltport8080pyltport8080-syour_custom_subdomainTutorialWatch HereContributingWhether reporting bugs, discussing improvements and new ideas : Contributions to py-localtunnel are welcome!Special thanks to chatgpt.