Saravanan666/pypi-org huggingface dataset:
Package: opx-plus
IntroductionOPX_Plus (OpenPyXL Plus) is an extension toOpenPyXL, a module for reading and writing .xlsx and similar files.OPX_Plusadds functions centred around creating regular reports based on a template file. You can log issues on theGitHub page.Has the Following Dependenciesimport openpyxl, glob, webbrowser, warnings, csv, datetime, os, time
from copy import copy
from openpyxl.formula.translate import TranslatorFunctionsFiles- get_file_path(file_path, name_search, *if_missing_urls)
- check_mandatory_files(f_list)

- open_template(template_path: object, *date_cells: str, previousday=False)
- save_file(new_file_location, file_name, workbook, afterdatetext="", previousday=False)
- remove(file_path)Import Data- open_vals_only_sheet(from_wb_path, sheet_id=0):
- paste_sheet_to_sheet(from_ws, to_ws, cell_range)
- paste_to_sheet(xlsx or csv file location, ws)
- paste_df_to_sheet(df, to_ws, include_header=False)Move Data- copy_over_and_down_formulas(from_ws, to_ws, formula_cells)
- paste_cells_to_cells(from_ws, to_ws, from_cell_range, offset=(0, 0))Sub-Functions- count_rows(ws)
- count_columns(ws)
- num_to_excel_col(n)
- excel_col_to_num(a)

- to_unix_time(year=datetime.datetime.now().year, month=datetime.datetime.now().month,
                 day=datetime.datetime.now().day, hour=datetime.datetime.now().hour,
                 minute=datetime.datetime.now().minute, second=datetime.datetime.now().second, add_3_zeros=False,
                 subtract=datetime.timedelta(0))
- date_ranger()
- worksheet_reset(sheet_nam, wb)
Package: opydoviz-kurlari
Python3 Döviz Kuru (Opydoviz-Kurlari)opydoviz-kurlari, T.C. Merkez Bankası ve çeşitli döviz kuru yayıncılarının API sistemleri kullanılarak, anlık kur bilgilerinin bu sistemler üzerinden alınabilmesini ve geliştiriciye çeşitli formatlarda sunabilmesini sağlayan, açık kaynak kodlu Python3 kütüphanesidir.Kurulumopydoviz-kurlari, PIP aracı ile kolay kurulum imkanı sağlar.pip install opydoviz-kurlariKullanım Örnekleri#!/usr/bin/env python3# -*- coding: utf-8 -*-importopydovizkur=opydoviz.kur()# Doviz kurlari birim kodlariopydoviz.birimler('truncgil')# TCMBtcmb=kur.tcmb('USD','SATIS','json')print(tcmb)# Truncgil APItruncgil=kur.truncgil('USD','ALIS','clear',verbose=True)print(truncgil)Gelişmiş Kullanım ve ParametrelerDetaylı kullanım belgeleri için Wiki sayfasını incelemelisiniz. Size en iyi bilgiyiWikisunar!1.x Özellikler1.x sürümü T.C. Merkez Bankası API ve Truncgil API baz alınarak yayınlanmıştır.T.C. Merkez Bankası tarafından yayınlanan döviz kurlarının tamamını çıktı olarak verebilmekle birlikte, Truncgil API sayesinde altın kurlarını da görüntülemenize imkan sağlar.Çeşitli özellikler listelenmiştir.Tüm Python3 sürümlerini destekler.Kur çıktıları için 3 farklı format desteğiyle gelir. (clear, text, json)Türkiye Cumhuriyeti Merkez Bankası ve Truncgil v3 API 1.0 sürümü itibariyle eklenmiştir.Çıktı yönetimi için opy-logger kullanıldı. opy-logger özelliklerini kullanmanıza imkan verir, çıktılar için loglama yapılabilir.Şu an yalnızca Türkçe dil seçeneğiyle geliştirilmiştir. 2.x veya 3.x sürümünde İngilizce desteği planlanmaktadır.Django, Flask gibi Framework'larla birlikte çalışabilir.Custom API servisi olarak kullanılabilir.
Package: opyenxes
========OpyenXes========.. image:: https://img.shields.io/pypi/v/opyenxes.svg:target: https://pypi.python.org/pypi/opyenxes.. image:: https://img.shields.io/travis/opyenxes/OpyenXes.svg:target: https://travis-ci.org/opyenxes/OpyenXes.. image:: https://readthedocs.org/projects/opyenxes/badge/?version=latest:target: http://opyenxes.readthedocs.io/en/latest/?badge=latest:alt: Documentation Status.. image:: https://pyup.io/repos/github/opyenxes/OpyenXes/shield.svg:target: https://pyup.io/repos/github/opyenxes/OpyenXes/:alt: UpdatesA python implementation of the XES standard based on the Java implementation OpenXes.* Free software: GNU General Public License v3* Documentation: https://opyenxes.readthedocs.io.Features--------* Facilitate io with XES, MXML event log files* Implementation of the XES standard* Based on the well-used Java implementation OpenXesCredits---------This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template... _Cookiecutter: https://github.com/audreyr/cookiecutter.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackageDevelopment Lead----------------* Hernan Valdivieso (The guy who wrote everything!)* Jorge Munoz-Gama (The mastermind)* Wai Lam Jonathan LeeContributors------------* TKasekamp=======History=======0.1.1 (2017-11-08)------------------* First release on PyPI.0.1.2 (2017-11-08)-----------------* Fix missing packages for release.0.1.3 (2017-11-08)------------------* Fixing missing packages in setup.0.1.4 (2017-11-08)------------------* Removed opyenxes module.0.1.5 (2017-11-08)------------------* Fixing missing packages in setup.0.1.6 (2017-11-09)------------------* Making extension.std a module
Package: opy-logger
Opy-loggerOpy-logger, uygulamalar için günlük kaydı tutmanıza imkan tanıyan Python kütüphanesidir.KurulumuOpy-logger kurulumu için pip deposunu kullanabilirsiniz.pip install opy-loggerKullanımıOpy-logger kullanımı için Wiki sayfasını inceleyebilirsiniz. Size en iyi bilgiyiWikisunar!2.x sürümündeki değişikliklerBu sürümde, günlük kaydı tutma özelliğini ekledim. Artık çıktılar dosyaya yazılabilecek. 1.x serisi, bu özelliği desteklemiyordu.Opy-logger, bu sürüm itibariyle yerelleştirmeyi destekliyor. Bu yüzden çıktı kategorilerindeki metinleri türkçeleştirdim. İngilizce, Fransızca, Almanca ve Rusça dil desteği yakında eklenecek.init() argümanını bu sürümde kaldırdım, yerine appinfo() argümanını ekledim. Artık kütüphaneniz yada uygulamanız hakkında bilgi vermek istediğinizde appinfo() kullanmalısınız. Bu argümanı kullanırken satır tipini belirlemelisiniz. (satır ve boşluk destekler) Üstelik E-Mail, lisans gibi bilgileri de destekliyor.Artık loglardaki tarih görünürlüğünü tek bir argüman ile belirleyebiliyorsunuz. Satır sonuna date=False ifadesini eklemek zorunda değilsiniz.Renklendirme seçeneğini de atlamadım. Artık tek bir argüman ile renklendirmeyi kapatabiliyorsunuz.2.1 sürümüyle birlikte gizlenebilen çıktılar özelliğini ekledik. Bu özellik sayesinde çıktılar ekrana yazdırılmadan log dosyasına yazılabilecek.Destek Veropy-logger modülünü kullanmak en büyük desteğinizdir. Geribildirimler içinmuhammedcamsari@icloud.commail adresini kullanabilirsiniz.
Package: opyml
OPyML 🐍OPML library for Python.FeaturesSupports all OPML versions.Minimal use of dependencies.100% typed and tested.ExamplefromopymlimportOPML,Outline# Create OPML documents from scratch.document=OPML()document.body.outlines.append(Outline(text="Example"))# Convert documents to XML.xml=document.to_xml()# Parse OPML documents from XML.document=OPML.from_xml(xml)DevelopmentInstall dependencies withpoetry shell && poetry install.Format code withblack opyml tests.Check types withmypy opyml.Run tests and collect coverage withpytest --cov opyml --cov-report html.Generate documentation withpdoc opyml.FeedbackFound a problem or want to request a new feature? Emailhelllo@holllo.organd I'll see what I can do for you.LicenseDistributed under theApache License 2.0andMITlicenses, seeLICENSE-ApacheandLICENSE-MITfor more information.
Package: opynfec
opynfecPython wrapper for OpenFEC APIThis product uses the openFEC API but is not endorsed or certified by the Federal Election Commission (FEC).SetupDownloadDownload the package via pip with the command>>>pipinstallopynfecGet API KeyFor small-scale testing, you can use"DEMO_KEY"as your API key, but for higher rate limits, create your own personalized key with the FEC at:https://api.open.fec.gov/developers/.Basic ExampleFirst, create you API connection object:>>>fromopynfecimportOpynFEC>>>api=OpynFEC("DEMO_KEY")# Replace with you own key if you have itNow you can use any of the implemented endpoints. For example, you can search for basic info about President Biden from all of the candidates that have registered with the FEC:>>>api.search("biden",category="candidates")[{'name':'OBAMA, BARACK / JOSEPH R. BIDEN','id':'P80003338','office_sought':'P'},{'name':'BIDEN, JOSEPH R JR','id':'P80000722','office_sought':'P'},...]See below for an overview of all of the endpoints that have been implemented.What has been implemented?Below we go through each category (in the same waythe openFEC does in their documentation) and describe the status of each.candidate: use thecandidate()andcandidates()methodscommittee: use thecommittee()andcommittees()methodsdates:not implementedfinancial: use thefinancial()methodsearch: use thesearch()methodfilings:not implementedreceipts: use thereceipts()methoddisbursements: use thedisbursements()methodloans:not implementeddebts:not implementedindependent expenditures:not implementedparty-coordinated expenditures:not implementedcommunication cost:not implementedelectioneering:not implementedpresidential:not implementedfiler resources:not implementedefiling:not implementedaudit:not implementedlegal:not implementedMore work will continue to be done, and contributions are always welcome!
Package: opyngpt
OpynGPT is a Python module that facilitates interactions with the OpenAI GPT-3.5 Turbo API to generate natural language responses based on user input. Notably, OpynGPT operates without requiring authentication or API keys, providing a straightforward and accessible tool for natural language generation.PrerequisitesBefore using OpynGPT, ensure you have the following:Python 3.x installedTherequestslibrary installed. You can manually install it using:pip install requestsInstallationYou can install OpynGPT using pip:pip install opyngptUsageImport thepromptfunction from OpynGPT:from opyngpt import promptUse thepromptfunction to generate natural language responses:user_input = "Write a factorial code in python."
response = prompt(user_input)

print(response)FeaturesSends user input to the GPT-3.5 Turbo API and receives natural language responses.No authentication or API keys required, making it hassle-free to use.Inspired by [tgpt](https://github.com/aandrew-me/tgpt/), OpynGPT utilizes a pool of users’ data and the API from fakeopen.com.ContributingIf you’d like to contribute to OpynGPT, feel free to fork the repository and submit a pull request.LicenseThis project is licensed under the GPLv3 License - check out [this website](https://www.tldrlegal.com/license/gnu-general-public-license-v3-gpl-3) for more information.GitHub RepositoryGitHub Repository
Package: opyplus
opyplusopyplus is a package allowing to work with EnergyPlus in Python.More specifically, it allows to:Parse, query and modify idf files efficiently, with a number of checks ensuring that your idf file remains correct
throughout your workParse and create epw filesLaunch simulations on EnergyPlusParse EnergyPlus output filesInstallTo install opyplus, run:pip install opyplusorconda install -c conda-forge opyplusDocumentationDocumentation is available athttps://opyplus.readthedocs.ioCompatibilityPython versionsopyplus is designed to work with python 3.6 and newer.It is currently automatically tested against the following python versions:3.63.7EnergyPlus versionsopyplus is designed to work with any EnergyPlus version.
Currently, it is automatically tested against the following versions (listed in TESTED_EPLUS_VERSIONS : oplus.tests.util):9.0.1Each test is therefore run multiple times : once per tested version. To automatically run a test on all versions, use
eplus_tester function (oplus.tests.util).Operating systemopyplus is designed to work with any Operating System. It is automatically tested against the latest versions of
the following OS:UbuntuMacOSMicrosoft WindowsContributingLocal testingInstall pytest and the packages listed in requirements.txt using pip or conda.Install EnergyPlus v9.0.1.At the root of the repository, run pytest:python -m pytest.Flake8We use flake8 for style enforcement, including docstrings.To run it, install flake8 and flake8-docstrings using pip or conda.At the root of the repository, run flake8:python -m flake8 opyplus/DocumentationTo build the configuration:install the requirements in docs/requirements.txtrunmake htmlin opyplus docs directory.To ensure the examples in the documentation remain up to date, they are tested using the doctest extension:https://www.sphinx-doc.org/en/master/usage/extensions/doctest.htmlrunmake doctestin opyplus docs directory to test the documentation.When adding code samples to the documentation, please use when possible the doctest extension, as it helps ensure your
samples will be kept up to date: use.. testcode::and.. testoutput::rather than.. code-block:: python.Release workflowDeveloper XX works on his branch (XX-...).
When finished, he completes the RELEASE.md without writing the version number (he completes under ## next).
He then creates a pull request into master.Once the pull request has been accepted by an administrator (tests must pass, among other things), the branch is merged on master.When administrator wants to create a version, he completes RELEASE.md with version number, sets it version.py, commits and creates a tag (vX.X.X).
He then pushes. The tests should succeed because all pull requests tests have succeeded.
A conda and pip build will then automatically be performed by Azure Pipelines.
Package: opyrability
Opyrability - Process Operability Analysis in Python.Welcome to opyrability, a Python-based package for performingProcess Operabilityanalysis.opyrability is developed by the Control, Optimization and Design for Energy and Sustainability (CODES) Group at West Virginia University under Dr.Fernando V. Lima's supervision.Authors:Victor AlvesandSan DinhDocumentation and Process Operability PrinciplesFull documentation and discussion regarding process operability principles are available inopyrability's online portal.InstallationThe Anaconda distribution is needed to have some of opyrability's dependencies.From PyPI/conda (Windows, Linux and macOS):The following commands will install opyrability and all dependencies on any OS (Windows, Linux and macOS):pip install opyrabilityThen installCyipoptfromconda:conda install -c conda-forge cyipoptFrom conda (Linux and macOS only):The single command below will install opyrability and all requirements/dependencies on Linux/macOS  operating systems automatically:conda install -c codes-group -c conda-forge opyrability
Package: opyrant
opyranthardware abstraction and shareable protocols for operant conditioningFree software: BSD licenseDocumentation:https://opyrant.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.3 (2016-07-19)First release on PyPI.
Package: opyration
OpyrationSQL and Python should be simple right? Sometimes code is better than extensive explanation - see snippets below:fromopyrationimportOperationpool=...# in production use an asyncpg|aiomysql Pool()# example 1op=Operation('customers',...).select().where(location='California',age__gt=18)awaitop.run()# example 2op=Operation('products',...)op.select()op..where(username='; drop customers')assertop.sql='SELECT * FROM products WHERE id = $1'InstalllingInstall withpip$pipinstallopyrationMore ExamplesfromopyrationimportOperationop=Operation()op.update(username='new username').where(id='1ea-455-bc0-88a')# to run in sync mode use: op.runs()awaitop.run()# asyncContributingFor guidance on how to make contributions to opyration, see theContribution GuidelinesLinksDocumentationGo To DocsPyPihttps://pypi.org/project/heavenSource CodeGithub
Package: opyratorfront
opyratorfrontGenerate opyrator UIs and webservices and docker containers from python functionsTo install:pip install opyratorfrontWhat it's aboutopyrator(From thereadme of opyrator):opyratorallows us to write code like this:frompydanticimportBaseModelclassInput(BaseModel):message:strclassOutput(BaseModel):message:strdefhello_world(input:Input)->Output:"""Returns the `message` of the input data."""returnOutput(message=input.message)Putting this in a file namedmy_opyrator.pyand runningopyrator launch-ui my_opyrator:hello_worldfrom the command-line, we can get a web UI that looks like this:Not only that, we can also get the underlying webservice, along with
an openAPI specification of the latter, by doing this:opyrator launch-api my_opyrator:hello_worldAnd more!opyratorfrontWe have tools (namelypy2dashandstreamlitfront) to get from a set of functions to a web UI.Nowstreamlitfront, likeopyrator, usesstreamlitto make a UI from
python, butstreamlitdoesn't provide a way to remove the UI concern and
only use the underlying web-service independently.
(Though there's interest in this.)opyratornot only offers that possibility, but alsomany other desirable "dispatches".That said,opyratordoesn't come with all the boilerplate minimized
multi-function get-from-python-functions-to-a-ui-wrapper stuff we'd want.
So we madeopyratorfrontto try to get the best of both worlds.
Package: opyrators
OpyratorsOpyrators is a lightweight python package that represents many-body fermion- and spin-operators as strings.For example, the fermionic string "012003" stands for
a 6-site operator formed by a creation operator on site 2, an annihilation operator on site 3, a density operator on site 6 and identity operators on the rest.See the encodings below.In this representation, operator manipulations such as addition and multiplication are easily implemented. Super useful if you want to quickly compute commutators (and/or use this for research projects).See the example below.InstallationpipinstallopyratorsExampleHere is a quick example showing some of the basic features of fermionic opyrators.# Import the fermion operators.fromfermionsimportoperator# The operator takes a dictionary as input, with its key-value pairs being# the operator string and its coefficient.A=operator({"112233":1.3})B=operator({"221133":0.34})C=A*B-B*A# The output of the print operation shows that this complex# operator consists of 6 terms, but is fully diagonal.print(C)# Term 0: 330033 0.442# Term 1: 330333 -0.442# Term 2: 333033 -0.442# Term 3: 003333 -0.442# Term 4: 033333 0.442# Term 5: 303333 0.442# As another example, here is an operator describing the hopping terms on a# 3-site periodic lattice.J=operator({"120":1,"012":1,"201":1})J=J+J.conj()EncodingsFermionsFor particles, the encoding works as follows:0 = Identity operator1 = Creation operator2 = Annihilation operator3 = Density operatorSpinsFor spin-1/2 operators, the encoding works as follows:0 = Identity operator1 = Pauli-X operator2 = Pauli-Y operator3 = Pauli-Z operatorAn operator with X on site 2, Y on site 4 and Z on site 5, in a system of 8 sites, hence would be "01023000".
Package: opytional
opytionalopytional makes working with values that might be None safer and easierFree software: MIT licenseDocumentation:https://opytional.readthedocs.io.Inspired by C++’sstd::optional.importopytionalasopyt# opyt.or_value# provides a fallback value when value is Noneopyt.or_value(None,'fallback')# returns 'fallback'opyt.or_value('value','fallback')# returns 'value'# opyt.or_else# provides a fallback callable when value is Noneopyt.or_else(None,lambda:'fallback')# returns 'fallback'opyt.or_else('value',lambda:'fallback')# returns 'value'# opyt.apply_if# applies an operator to value when value is not Noneopyt.apply_if(None,lambdax:x+' world')# returns Noneopyt.apply_if('hello',lambdax:x+' world')# returns 'hello world'# opyt.apply_if_or_value# applies an operator to value when value is not None# with a fallback value for when value is Noneopyt.apply_if_or_value(None,lambdax:x+' world','fallback')# returns 'fallback'opyt.apply_if_or_value('hello',lambdax:x+' world','fallback')# returns 'hello world'opyt.apply_if_or_value('hello',lambdax:None,'fallback')# returns None# opyt.apply_if_or_else# applies an operator to value when value is not None# with a fallback callable for when value is Noneopyt.apply_if_or_else(None,lambdax:x+' world',lambda:'fallback')# returns 'fallback'opyt.apply_if_or_value('hello',lambdax:x+' world',lambda:'fallback')# returns 'hello world'opyt.apply_if_or_value('hello',lambdax:None,lambda:'fallback')# returns NoneCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2022-02-22)First release on PyPI.
Package: opyum
# opyum[![version](https://img.shields.io/pypi/v/opyum.svg)](http://pypi.python.org/pypi/opyum)[![downloads](https://img.shields.io/pypi/dw/opyum.svg)](http://pypi.python.org/pypi/opyum)[![license](https://img.shields.io/pypi/l/opyum.svg)](http://pypi.python.org/pypi/opyum)[![status](https://img.shields.io/pypi/status/opyum.svg)](http://pypi.python.org/pypi/opyum)[![pyversions](https://img.shields.io/pypi/pyversions/opyum.svg)](http://pypi.python.org/pypi/opyum)## Description**Optimizing Python applications without mutilation code.**Use the automatic modification of AST for code optimization, which is transparent to the user and requires the addition of only a few lines.## Usage**Decorator**:```pythonfrom opyum import optimize@optimizedef function_for_optimize():...```**Import-hook**:```pythonimport opyumopyum.activate()# other imports```**"With" syntax:**```pythonimport opyumwith opyum.activate:# other imports```**Command-line mode:**Show optimized source:$ opyum show myfile.pyDiff between original source and optimized source:$ opyum diff myfile.pyConsole diff (with "-c" or "--console" option):![console diff example](https://raw.githubusercontent.com/Amper/opyum/master/example/screen1.png)Custom app diff (with "--app" option):![app diff example](https://raw.githubusercontent.com/Amper/opyum/master/example/screen2.png)By default, html diff (without options):![app diff example](https://raw.githubusercontent.com/Amper/opyum/master/example/screen3.png)## List of optimizations####Constant foldingBefore:```pythonx = 7 * 24 * 60 * 60y = [i ** 2 for i in range(10) if i % 2 == 0]z = sum(range(1000))```After:```pythonx = 604800y = [0, 4, 16, 36, 64]z = 499500```####"'Power' to 'multiplication'" optimizationBefore:```pythonx1 = a ** (-2)x2 = a ** (-1)x3 = a ** ( 0)x4 = a ** ( 1)x5 = a ** ( 2)```After:```pythonx1 = 1 / (a * a)x2 = 1 / ax3 = 1x4 = ax5 = a * a```####"'Yield' to 'yield from'" optimizationBefore:```pythonfor x in some_expression:yield x```After```pythonyield from some_expression```####Builtin constant propagationBefore:```pythonfrom math import pidef circumference(r):return 2 * pi * r```After:```pythonfrom math import pidef circumference(r):return 2 * 3.141592653589793 * r```####Custom constant propagationBefore:```pythonC_PI = 3.141592653589793def circumference(r):return 2 * C_PI * r```After:```pythonC_PI = 3.141592653589793def circumference(r):return 2 * 3.141592653589793 * r```####Dead code eliminationBefore:```pythondef do_something():return 1print('returning 1')if condition1:passelif condition2:do_something()else:pass```After:```pythondef do_something():return 1if not condition1 and condition2:do_something()```## InstallationInstallation is simple with pip:$ pip install opyumor with setuptools:$ easy_install opyum## Documentation[opyum.readthedocs.org](http://opyum.readthedocs.org/)[opyum.rtfd.org](http://opyum.rtfd.org/)