Saravanan666/pypi-org huggingface dataset:
Package: py-sec-vault
PySecVaultHashicorp Vault implementation in python softwarePre-requisitesTo use this software, you need to have a running instance of Hashicorp Vault.
You can find the installation instructionshere.Alternatively, you can use the docker image provided by Hashicorphere.dockerrun--cap-add=IPC_LOCK\-e'VAULT_LOCAL_CONFIG={"storage": {"file": {"path": "/vault/file"}}, "listener": [{"tcp": { "address": "0.0.0.0:8200", "tls_disable": true}}], "default_lease_ttl": "168h", "max_lease_ttl": "720h", "ui": true}'\-p8200:8200vaultserverAfter this command, you can access the vault UI athttp://localhost:8200and follow the instructions to initialize the vault.Installationpipinstallpy-sec-vaultUsagefromvaultimportVaultvault=Vault(host="http://localhost:8200/",auth_method="approle",engine_name="my_engine_name",path="my_vault_path",token="my_vault_token",)# Prints the keys in the vault, validating if the vault is initialized;print(vault.keys)# Retrieving a secret from the vault, or None if not foundmy_optional_secret=vault.get("MY_SECRET")# Retrieving a secret from the vault (and raising an exception if not found)my_secret=vault["MY_SECRET"]Usage with environment variablesTo make the vault work with environment variables, you can use the following code:First, you need to set the environment variables for the vault:export VAULT_HOST=http://localhost:8200/
export VAULT_AUTH_METHOD=approle|token
export VAULT_ENGINE_NAME=<my_engine_name>
export VAULT_ROLE_ID=<my_vault_id>
export VAULT_SECRET_ID=<my_vauld_secret>
export VAULT_PATH=<my_vault_path>Second, you can use the following code to retrieve the secrets from the vault or environment variables:fromvaultimportfrom_env_or_vault,from_vault# NB: These functions will instantiate a Vault object and retrieve the secret from the vault# resulting in a performance penalty if used in a loop. Alternatively, you can instantiate a Vault object# once and use the get method to retrieve the secrets (next example).# Retrieving a secret from the vault or environment variable or using a default valuefrom_env_or_vault("DB_PASSWORD",default="admin")# Retrieving a secret from the vault (and raising an exception if not found)from_vault("API_TOKEN")To retrieve all secrets from the vault, you can use the following code:fromvaultimportVault,from_env_or_vault# This will connect to the vault based on the environment variables;vault=Vault()# Prints the keys in the vault, validating if the vault is initialized;print(vault.keys)# Retrieving a secret from the vault, or None if not foundmy_secret=vault.get("MY_SECRET")# Passing an instance of Vault to the from_env_or_vault function,# so it doesn't need to connect to the vault again;my_variable=from_env_or_vault("MY_VARIABLE",default="admin",vault=vault)Next stepsOn init load multiple paths/enginesAdd support for other auth methodsPhase out the use of hvac and use requests insteadMake sure the vault is not initialized every time, but only when neededImplementation of from_vault_or_env
Package: py-sec-xbrl
py-sec-xbrlSEC EDGAR Parser based on Python 3IntruductionThis is a tool intended to parse XBRL files from SEC. Thus, the focus is to parse XBRL XML files so that data is more easily accessible. The idea is to provide a tool for you to code you want instead of a tool that implements a workflow but is rigid.In addition, it's not intended to be a tool to scrap SEC EDGAR as it varies a lot as to how you want to do the scrapping and it's relatively easier. (though it can be added later if you want)The repository is originally forked fromhttps://github.com/tooksoi/ScraXBRL, but I soon find out that we have very different approaches and objectives, so soon afterwards the code in the 2 repositories are completely different and nothing is taken from ScraXBRL.How to installCurrent verion:v0.1Dependencies: in therequirements.txtfile, currently only thelxmllibraryInstallation:pip install py-sec-xbrlHow to startget some XBRL XML files (see documentation if you don't have one yet)seetest-parse.py, modify the path to the XML file and it's really easyDocumentationMore detailed documentation can be found here:docDevelopment roadmap2 priorities for the moment:Basic SEC XBRL parsing capabilitiesMake the scripts ready as a library that can be installed
Package: pySEED
pySEED-EDA is a Python implementation of the Symmetric-Approximation Energy-Based Estimation of Distribution (SEED) algorithm: A Continuous Optimization Algorithm , which allows the optimization in continuous space for independent variable functions, based on distribution estimation algorithms, in the Univariate Marginal Distribution scheme [2], the main idea is to make a generational change in each population evolution under the Boltzmann distribution probability function (PDF-B), because PDF-B is a function that has the property that states with less energy are unlikely, so SEED converges in each evolution to a better or equal energy state.
Package: py-seedlings
py_starterHelpful python starter functions for various repository useDocumentationPyPIInstallationpip install kabbes_py_starterUsageFor more in-depth documentation, read the information provided on the Pages. Or better yet, read the source code.importpy_starteraspsps.print_for_loop(['Apple','Strawberry','Banana'])>>> 
1. Apple
2. Strawberry
3. Bananaps.merge_two_dicts({'A':'Alpha','C':'Nothing'},{'B':'Bravo':'C':'Charlie'})>>> {'A':'Alpha','B':'Bravo','C':'Charlie'}AuthorJames Kabbes
Package: py-seeds
Seed function (random, torch, torch.cuda)seed_everythingget_seed_stateset_seed_stateseed_everythingfrompy_seedsimportseed_everythingseed_everything(0)get_seed_stateimporttorchfrompy_seedsimportget_seed_statestate=get_seed_state()torch.save(state,'seeds.pth')set_seed_stateimporttorchfrompy_seedsimportset_seed_statestate=torch.load('seeds.pth')set_seed_state(state)
Package: pyseg
# PySeg
Chinese tokenizer implement with C, and package with python.
c 语言开发的一款开源的高性能中文分词器，使用流行的mmseg算法实现。## Build and test`shell script python3 setup.py build_ext--inplacepython3 test.py `### Install`shell script python3 setup.py install `### TODO
dist to pypi with wheel(can not pack data file till now).### About
1. contact mewbq813@foxmail.comor www.codeyourlife.cn
1. The core C implement of this project [friso](https://github.com/lionsoul2014/friso).
Package: pysegd3
PYSEGD3Standalone package to read/write segd rev3 files in pythonInstallFrom Pypipipinstallpysegd3Form Github (sources)gitclonehttps://github.com/mlehujeur/pysegd3.git
python-mpipinstall-epysegd3UsagesLoad a segd rev 3 filefrompysegd3.readsegd3importread_segd_rev3for(trace_header,trace_data)inread_segd_rev3(segdfilename):print(trace_header)# a python dictionnary built like obspy trace stats headerprint(trace_data)# a numpy arrayLoad as an obspy streamObspy is not included in this packagepipinstallobspyfrompysegd3.readsegd3_as_obspyimportread_segd_rev3_as_obspystream=read_segd_rev3_as_obspy(segdfilename)print(stream)
Package: pysegmenters-blingfire
pysegmenters_blingfireRule based segmenter based on SpacyInstallationYou can simplypip install pysegmenters_blingfire.DevelopingPre-requesitesYou will need to installflit(for building the package) andtox(for orchestrating testing and documentation building):python3 -m pip install flit toxClone the repository:git clone https://github.com/oterrier/pysegmenters_blingfireRunning the test suiteYou can run the full test suite against all supported versions of Python (3.8) with:toxBuilding the documentationYou can build the HTML documentation with:tox -e docsThe built documentation is available at `docs/_build/index.html.
Package: pysegmenters-pysdb
pysegmenters_pysdbRule based segmenter based on SpacyInstallationYou can simplypip install pysegmenters_pysdb.DevelopingPre-requesitesYou will need to installflit(for building the package) andtox(for orchestrating testing and documentation building):python3 -m pip install flit toxClone the repository:git clone https://github.com/oterrier/pysegmenters_pysdbRunning the test suiteYou can run the full test suite against all supported versions of Python (3.8) with:toxBuilding the documentationYou can build the HTML documentation with:tox -e docsThe built documentation is available at `docs/_build/index.html.
Package: pysegmenters-rules
pysegmenters_rulesRule based segmenter based on SpacyInstallationYou can simplypip install pysegmenters_rules.DevelopingPre-requesitesYou will need to installflit(for building the package) andtox(for orchestrating testing and documentation building):python3 -m pip install flit toxClone the repository:git clone https://github.com/oterrier/pysegmenters_rulesRunning the test suiteYou can run the full test suite against all supported versions of Python (3.8) with:toxBuilding the documentationYou can build the HTML documentation with:tox -e docsThe built documentation is available at `docs/_build/index.html.
Package: pysegmenters-rules_segmenter
pysegmenters_rules_segmenterRule based segmenter based on SpacyInstallationYou can simplypip install pysegmenters_rules_segmenter.DevelopingPre-requesitesYou will need to installflit(for building the package) andtox(for orchestrating testing and documentation building):python3 -m pip install flit toxClone the repository:git clone https://github.com/oterrier/pysegmenters_rules_segmenterRunning the test suiteYou can run the full test suite against all supported versions of Python (3.8) with:toxBuilding the documentationYou can build the HTML documentation with:tox -e docsThe built documentation is available at `docs/_build/index.html.
Package: pysegmenters-spacyrules
pysegmenters_spacyrulesRule based segmenter based on SpacyInstallationYou can simplypip install pysegmenters_spacyrules.DevelopingPre-requesitesYou will need to installflit(for building the package) andtox(for orchestrating testing and documentation building):python3 -m pip install flit toxClone the repository:git clone https://github.com/oterrier/pysegmenters_spacyrulesRunning the test suiteYou can run the full test suite against all supported versions of Python (3.8) with:toxBuilding the documentationYou can build the HTML documentation with:tox -e docsThe built documentation is available at `docs/_build/index.html.
Package: pysegmenttree
pysegmenttreeSegment tree is a data structure to perform efficient range queries over an array.Properties of the segment tree with the size N.OperationTime complexitybuildO(N)queryO(Log[N])updateO(Log[N])Key featuresImplements classical data structure to deal with interval queries.Includes two classesIntSegmentTreeandFloatSegmentTreeimplemented in pure C. They can boost performance up to 20x and are used by default for simple data types if possible.Installation$ pip install pysegmenttreeBasic usage>> from pysegmenttree import stree

# Build the tree
# 'sum' function is used by default
>> tree = stree([5, 1, 9, 4, 5, 11])

# Find sum on the interval [1, 4)
>> tree.query(1, 4)
14

# Set element with index 3 to 6
>> tree.update(3, 6)
>> tree.query(1, 4)
16Advanced usageThere are three predefined query functions available that can be used withintorfloattrees. Use them as follows:>> from pysegmenttree import stree, QueryFunction
>> tree = stree([5, 1, 9, 4, 5, 11], func=QueryFunction.MIN)

# Find min on the interval [1, 4)
>> tree.query(1, 4)
1Plain python functions are also suitable, but in this case c-extensions willnotbe used.>> tree = stree([5, 1, 9, 4, 5, 11], func=min)
>> tree.query(1, 4)
1Example with user-defined class.>> from pysegmenttree import stree
>> from pysegmenttree.test_utils import Vec2D
# List of 2D vectors
>> tree = stree([Vec2D(0, 1), Vec2D(5, -2), Vec2D(-2, 3)], func=max)
# Find the vector of maximum length on the interval [0, 2)
>> tree.query(0, 2)

Vec2D(x=5, y=-2)DocsDocs are availablehere.PerfomanceThree basic segment tree operations were benchmarked for three different typesint,floatandVec2D.
I included results for 3 other python segment trees libraries for comparison.
All code related to benchmarking can be found inbenchmarkssubdirectory.segment-treesegmenttreec-segment-treeinitParamValueTree size100 000queryParamValueTree size100 000Queries performed10 000updateParamValueTree size100 000Updates performed10 000DevelopmentRead morehere.
Package: pySEI
pySEIAtualizado para interagir com o SEI 4.0Pacote para interagir com o SEI - Sistema EletrÃ´nico de InformaÃ§Ã£o. O pacote usa Selenium com o chromedriver ou Ms Edge.
O chromedriver pode ser obtido emhttps://chromedriver.chromium.org/downloadsO Ms Edge Driver pode ser obtido emhttps://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/Installpip install pySEIUseImportar pacotefrom pySEI import SeiIniciar navegadorsei = Sei(headless=False)Iniciar navegador headlesssei = Sei()Especificar o caminho para o chromedriversei = Sei(executable_path='chromedriver')Entrar na pÃ¡gina do SEIsei.start_driver(url='http://sei.anatel.gov.br', usuario=usuario, senha=senha)Ir para um processosei.go_to(numero_sei=numero_sei)Verificar se um processo estÃ¡ aberto em uma Ã¡reais_aberto,mensagem = sei.is_processo_aberto(processo=processo,area=area)Verificar se um processo estÃ¡ anexado a outroprocesso_anexador = sei.get_processo_anexador(processo=processo)Trocar Ã¡rea do usuÃ¡riois_area_trocada = sei.seleciona_area(area=area)Clicar em um botÃ£o do processo ou documentois_botao_clicado = sei.clicar_botao(botao=botao)Verificar se o processo estÃ¡ sobrestadois_sobrestado,mensagem_sobrestamento = sei.is_sobrestado(processo=processo)Verificar se o processo estÃ¡ sobrestado em uma Ã¡reais_sobrestado,is_na_area = sei.is_sobrestado(processo=processo, area=area)Sobrestar processo na Ã¡rea atualis_sobrestado = sei.sobrestar_processo(motivo='Quero sobrestar', processo=processo)Remover sobrestamento do processo na Ã¡rea atualsobrestamento_removido = sei.remover_sobrestamento(processo=processo)Fechar a janela de alertamensagem_alerta = sei.fechar_alerta()Publicar apenas no Boletim de ServiÃ§ois_publicado = sei.publicar(documento=documento
    ,resumo_ementa=resumo_ementa, data_disponibilizacao='21/01/2021')Publicar no Boletim de ServiÃ§o e no DOUis_publicado = sei.publicar(documento=documento
    ,resumo_ementa=resumo_ementa, data_disponibilizacao='21/01/2021'
    , dou=dou, secao=secao, pagina=pagina)Obter conteÃºdo HTML de documentotry:
    conteudo_documento = sei.get_conteudo_documento(documento=documento)
except:
    print('ConteÃºdo nÃ£o encontrado')Fechar o navegadorsei.close()
Package: pyseim
PyS(e)imPyS(e)im is an open source waveform viewer.
It is meant to play together with ngspice and kicad. With just one click you can netlist, simulate and show the simulation results in a window:Make sure to include something like the following in your ngspice control section:.probealli.controlsavealltran100n1muicrunwrite.endcWhen running ngspice it should create arawspice.rawfileHow to use?PyS(e)im is available on pypi:pipinstallpyseim
pyseim--helpFeaturesNetlist, simulate and show results with just one clickEquation supportAlpha StatusOnly tested with MacOnly transient simulations working currentlyAll signals in one plotIt is a very simple script (currently just one file). However, I find it already quite useful.IdeasShow SOA violationsSupport for AC simulations...ContributeFeel free to contribute.Fun FactThe package name is close to PySim that was already taken. PyS(e)im is a close match. Seim means 'viscous juice'. Therefore, the icon is a honeycomb.CreditsI took some icons from here:Honey icons created by imaginationlol - FlaticonDocument icons created by bqlqn - FlaticonRefresh icons created by Dave Gandy - Flaticon
Package: pyseing
SEING was developed in the Clancy Group (https://clancygroup.wse.jhu.edu/). Fingerprints (in this context) are numerical representations of chemical environments designed to be invariant under property-perseving operations such as permutation of atoms of the same nature, geometric rotation, etc. For more information on fingerprints in general and the ones currently implemented in SEING, please see the official documentation and user-guide.
Package: pyselect
========pyselect========A Python library for easily getting user input from multiple items in a list, emulating the bash(1) select builtin function.============Usage============Pyselect wraps raw_input, more or less::In [1]: import pyselectIn [2]: pyselect.select(['apples', 'oranges', 'bananas'])1) apples2) oranges3) bananas#? 2Out[2]: 'oranges'But can also be used as a Python module, when scripting::$ python -m pyselect $(ls)1) LICENSE.txt2) build/3) dist/4) pyselect.egg-info/5) pyselect.py6) pyselect.pyc7) setup.py8) test.py#? 4pyselect.egg-info/Or in a Bash pipe::$ ls | xargs python -m pyselect1) LICENSE.txt2) build/3) dist/4) pyselect.egg-info/5) pyselect.py6) pyselect.pyc7) setup.py8) test.py#? 5pyselect.py============Installation============Pyselect is available on Pypi::$ pip install pyselect============License============MIT, see LICENSE.txt=======================Version 0.1 (10/31/2013)=======================* updating setup.py formatting - Matt Behrens http://github.com/askedrelic/pyselect/commit/157d5f932d89abefb491caade959bead8c7a53d8* adding manifest - Matt Behrens http://github.com/askedrelic/pyselect/commit/18420069e6de7c3367b17c3882437c90b534d786* add history - Matt Behrens http://github.com/askedrelic/pyselect/commit/b85b11d2ae3011a18dcadcf145cb543e2ec30f45* start testing - Matt Behrens http://github.com/askedrelic/pyselect/commit/c09e02bac7d09388246fc4a2b16e71662099cfdf* add history, readme - Matt Behrens http://github.com/askedrelic/pyselect/commit/5fced5a9b0916c173c4a7f5e0c199ed0b3935c41* add readme - Matt Behrens http://github.com/askedrelic/pyselect/commit/a2fd5efeb7e8edc2dc175bc7e737ebd444c1cd23* add license - Matt Behrens http://github.com/askedrelic/pyselect/commit/dafb20c50258415a91433ee5a6bda7910b433df1* lets call it 0.1 - Matt Behrens http://github.com/askedrelic/pyselect/commit/2ff14ca7db13f50fd2a469a32c2cf1c3d3188448
Package: pyselecta
A fuzzy text selector for files and anything else you need to selectInspired by Gary Bernhardt’sselecta.Unlike selecta, pyselecta doesn’t include any interactive functionality.  You
give it a list of options and a search term and it returns matches.Installation$ pip install pyselectaThis will give you thepyselectashell command.Usage$ find . -type f | pyselecta "models"This will return a newline separated list of file paths with the best candidate
on top.$ find . -type f | pyselectaOmitting the search term just copies the stdin to stdout.LicenseBSD, short and sweet
Package: pyselenese2
Selenium IDE lets you create Selenium tests in specially structured HTML (or
“Selenese”). These can be easily run on your local machine but do not lend
themselves to being run on a server via e.g. Selenium RC.This dynamically translates suites of Selenese tests into Python
unittest.TestCase classes, which can then be run using Selenium RC within
the standard Python unit testing framework and using the Python Selenium
bindings.WarningThis code is still under construction. It might break randomly and does not
currently support more than a fraction of Selenese keywords. If you’d like to
improve its behaviour then please add more methods to the class in mapper.py
to map Selenese keywords to Python-binding API calls.SetupDownload Selenium RChttp://seleniumhq.org/download/2. Unpack the server JAR at selenium-server-X/selenium-server.jar and run it
in the background:java -jar selenium-server.jarCheck out this repository anywhere on your filesystem.4. Unpack the Python bindings selenium-python-client-driver-X/selenium.py
from Selenium RC and place it within this repositoryExecutionAtest.pyexample file is provided, where it shows how to run tests from
files. You can alternatively use aSingleStringAdaptorto create tests from
a single string.If your target is to build tests from a folder (or a set of folders), take
a look at the usage of thegenerate_test_casefunction in combination with
theTestSuiteFileAdaptor.TestingFunctional testing is implemented through Selenese tests.python test.py [selenium-server]Known issuesThe main issue is that not all of Selenium’s test syntax has been transcribed
in mapper.py yet. Please let me know if your tests fail on a particular
Selenium keyword; alternatively, feel free to fork the github repository and
add the mapping yourself.CreditsAll the mapper.py functions were created by J.P. Stacey. Development on
PySelenese seems to have halted two years ago. I just needed something to
translate a HTML Selenese string and this is the best project I’ve found.Some heavy refactoring needed to take place though, but the heavy part(map
the Selenese functions to Python in real time) was already done by Stacey.Here is the original repo:http://github.com/jpstacey/PySelenese
Package: py-selenium-auto
Selenium for PythonIntroductionThis package is a library designed to simplify your work with Selenium WebDriver and based onpy-selenium-auto-coresolution.Supported browsersChromeNote: Support for popular browsers will be expanded in the futureSupported Python VersionsPython 3.7-3.9InstallationIf you havepipon your system, you can simply install or upgrade the Python bindings:pipinstall-Upy-selenium-autoAlternately, you can download the source distribution fromPyPI, unarchive it, and run:pythonsetup.pyinstallTemplateTo start the project using this solution, you can look intopy-selenium-auto-template.Quick startAdd the dependency in your projectCreate conftest.py file and add the following code:@pytest.fixture(scope="session",autouse=True)defsetup_session(request):# TODO: workaround to set calling root path, because pytest runs from the root dirwork_dir=RootPathHelper.current_root_path(__file__)os.chdir(work_dir)It's necessary to set root dir for your test directory. It is assumed that your project structure will look like this:src/
    __init__.py
    some_code/
tests/  # Any name
    __init__.py
    resources/
    some_code/Create instance of Browser in your test:browser=BrowserServices.Instance.browserUse Browser's methods directly for general actions, such as navigation, window resize, scrolling and alerts handling:browser.maximize()browser.go_to("https://google.com")browser.wait_for_page_to_load()Use ElementFactory class's methods to get an instance of each element:my_text_box=BrowserServices.Instance.service_provider.element_factory().get_text_box(Locator.by_xpath("XPATH"),"Name")Or you can inherit a class from Form class and use existing ElementFactory:self.my_text_box=self._element_factory.get_text_box(Locator.by_xpath("XPATH"),"Name")Call element's methods to perform action with element:my_text_box.type("example@email.com")Quit browser at the end:browser.quit()ConfigurationThis file is used to configure your browser settings, as well as other settings.By default, your solution will use the file from this project.Copy thefollowing fileto your solution intests/resourcesto configure it yourselfLicenseLibrary's source code is made available under theApache 2.0 license.
Package: pyseleniumfox
Project InfoProject Page:https://github.com/crdoconnor/pyseleniumfoxBug Tracking:https://github.com/crdoconnor/pyseleniumfox/issuesGet StartedInstall:pip install pyseleniumfoxUse:‘’’
from selenium import webdriver
import pyseleniumfoxdriver = webdriver.Firefox(pyseleniumfox.Profile())# Write your tests
‘’’Your preconfigured firefox profile with the selenium IDE in python mode is now usable.