Saravanan666/pypi-org huggingface dataset:
Package: extended-knapsack
extended_knapsack0-1 knapsack with an additional constraint of maximum number of items used.Usagepip3 install extended_knapsackfromextended_knapsack.knapsackimportsolveitems=[{'weight':4,'value':5,'my-custom-field':1},{'weight':3,'value':4,'my-custom-field':2},{'weight':2,'value':3,'my-custom-field':3},{'weight':1,'value':2,'my-custom-field':4},]result_value,result_items=knapsack(items,6,2)print(result_value)# 8print(result_items)# [#   {'weight': 4, 'value': 5, 'my-custom-field': 1},#   {'weight': 2, 'value': 3, 'my-custom-field': 3}# ]
Package: extended-maths
Welcome to Extended-mathsExtended-maths is an basic liberary which consist of simple maths functions and other most used utils functions.It consist of - factorial , palindrome , isSquare , temperature conversion and many more functions to come in upcoming versions.Installationpipinstallextended_mathsWho should use Extnded-maths?It is an open source library that anybody can use.Anybondy who want to increase productivity.Professionals who prefer a low code solution.LicenseIt is completely free and open-source and licensed under theMITlicense.
Package: extendedMD
Extended Motif Discovery algorithmThis repository contains a python implementation of the Extended Motif Discovery (EMD) algorithm [1] for motif
discovery in time-series.Prerequisitesdtaidistance==1.1.4
matplotlib>=3.0.2
numpy>=1.15
pandas>=0.23
saxpy==1.0.1.dev167
scipy>=1.2
seaborn>=0.9InstallingThis packages is available on PyPI and thus can be directly installed with pip:pip install extendedMDAlternatively, this package can installed from source by cloning this repository and installing it manually with the command:python setup.py installUsageReferences[1]  Y. Tanaka, K. Iwamoto, K. Uehara,  Discovery of Time-Series Motif from Multi-Dimensional Data Based on
MDL Principle,  Machine Learning (2005) 269–300.
Package: extended-networkx-tools
Extended networkx ToolsPython Package for for visualizing and converting networkx graphs.IntroductionThis package was created for the purpose of examining bidirectional graphs with respect to its convergence rate and edge costs.Installationpipinstallextended-networkx-toolsDocumentationextended-networkx-tools.readthedocs.ioThe packageCurrently the package contains 3 main modules,Creator,AnalyticsandVisual.CreatorContains tools to create networkx graphs based on given parameters, such as randomly
create an empty graph based on a number of nodes, or specify precisely the
coordinates of nodes and the edges between them.AnalyticsHas tools for analysing the networkx object and extract useful information from it, such
as convergence rate, neighbour matrix, its eigenvalues.SolverUsed to find simple greedy solutions to a connected graph taken from graph theory. The current approaches are:path: Adds edges as a path from the start to end nodecycle: Adds edges just like the path, but also one edge from the start to end node.complete: Adds edges between all nodes to all the other nodes, such as the maximum distance between every node is one.VisualIs used to print a networkx graph to the screen, with its edges.Example output graphAnalyticsGraphTheAnalyticsGraphclass is a helper class that serves the purpose of a wrapper object
that can do all calculations based on changes done to the graph, rather
than recalculating every metric after simple changes. Such as the connectivity state
will stay the same after adding an edge.There is also options to revert changes and keep previous calculations.Example usage:fromextended_networkx_toolsimportCreator,Solver,AnalyticsGraph# Create a random graph with a pathg=Creator.from_random(10)g=Solver.path(g)# Convert the graph to an AnalytcsGraph objectag=AnalyticsGraph(g)convergence_rate=ag.get_convergence_rate()# Calcualtes the convergence rate from scratchag.remove_edge(4,5)# Removes an edgeag.revert()# Revert the changesconvergence_rate=ag.get_convergence_rate()# Doesn't calculate it since it's saved from previous stateUsageImportfromextended_networkx_toolsimportCreator,Analytics,Visual,Solver,AnalyticsGraph
Package: extendedos
eos: Extended os moduleInstallpip install extendedosQuick Startimport os.path as osp
from eos import makedirs
makedirs('/tmp/example/1/2')
osp.exists('/tmp/example/1/2')
# True
from eos import make_fancy_output_dir
make_fancy_output_dir('/tmp/result')
# '/tmp/result/iory-mac-2020-03-27-19-08-17-191116-46504'
make_fancy_output_dir(time_format=None)
# '/tmp/vm7bwis1'from eos import measure
import time
with measure('measure_example'):
   time.sleep(1.0)
# measure_example: 00:00:01.000574from eos import current_time_str
current_time_str()
# '2021-01-08-07-42-12-301381'
Package: extended-pathlib
This package monkey-patches some useful extensions on to pathlib from the Python
standard library. These extensions are only supported on Posix systems.Once installed, you can simply import Path from extended_pathlib just as you
would from pathlib, and use the new functionality:>>> from extended_pathlib import Path

>>> tmp = Path('/tmp')
>>> tmp.is_readable()
TrueInstallationUse ‘pip3 install extended_pathlib’ to install. Requires Python2.7 or Python3.4
or better.File Typesis_readableReturns True if the given path points to an existing file or directory that is
readable.>>> Path('/usr/bin/python').is_readable()
Trueis_writableReturns True if the given path points to an existing file or directory that is
writable.>>> Path('/usr/bin/python').is_writable()
Falseis_executableReturns True if the given path points to an existing file or directory that is
executable.>>> Path('/usr/bin/python').is_executable()
Trueis_hiddenReturns True if the given path points to an existing file or directory that is
hidden (starts with ‘.’).>>> Path('/usr/bin/python').is_hidden()
Falseis_newerReturns True if the given path is newer than the reference.  The reference may
be a timestamp, a datetime object, or another path.>>> Path('/usr/bin/python').is_newer(0)
Truepath_fromReturns relative path from start as a path object.
This differs from Path.relative_to() in that relative_to() will not return
a path that starts with ‘..’.>>> cwd = Path('.')
>>> cwd.path_from('..')
PosixPath('tests')sans_extRemoves the file extension.
This differs from Path.stem, which returns the final path component
stripped of its extension. This returns the full path stripped
of its extension.>>> Path('a/b.c').sans_ext()
PosixPath('a/b')write_bytesWrites a binary file.
This is the standard pathlib write_bytes() that was introduced in Python3.5, but
back-ported to earlier versions.write_textReads a binary file.
This is the standard pathlib write_text() that was introduced in Python3.5, but
back-ported to earlier versions.read_bytesReads a binary file.
This is the standard pathlib read_bytes() that was introduced in Python3.5, but
back-ported to earlier versions.read_textReads a text file.
This is the standard pathlib read_text() that was introduced in Python3.5, but
back-ported to earlier versions.expanduserExpand leading tilde (~) in paths.
Package: extended_rospylogs
# Extended ROS logs for python (rospy)`extended_rospylogs` implements for `rospy` some of the extra functionalities found in `roscpp` for logging.## InstallationYou can install `extended_rospylogs` from pip using```pip install extended_rospylogs```or using```pip install git+https://github.com/charlielito/extended_rospylogs```## ROS log messages extensionIn `rospy` there are only 5 functions for logging: `rospy.logdebug`, `rospy.loginfo`, `rospy.logwarn`, `rospy.logerr` and `rospy.logfatal`. In `roscpp` you can find other options like `ROS_DEBUG_COND`, `ROS_DEBUG_NAMED`, `ROS_DEBUG_COND_NAMED`, etc (for more info go to [ros logging](http://wiki.ros.org/roscpp/Overview/Logging)).The conditional option for logging is very useful when you want to have different logging messages in your nodes, and you want to change it in runtime (because you only can specify the `log_level` when initializing the node).### Extended FunctionsFor the moment here are implemented all the `rospy` logging functions with the `cond` option:* `logdebug_cond(bool, message)`* `loginfo_cond(bool, message)`* `logwarn_cond(bool, message)`* `logerr_cond(bool, message)`* `logfatal_cond(bool, message)`## Usage```pythonimport rospyfrom extended_rospylogs import logdebug_cond, loginfo_condrospy.init_node('some_node')rate = 30debug = Truer = rospy.Rate(rate)while not rospy.is_shutdown():#### DO STUFFlogdebug_cond(debug, "Some debug message")loginfo_cond(debug, "Some info message for debugging")r.sleep()```Note that the `debug` variable could be a **node parameter** so it could be changed on runtime.
Package: extended-selenium-page-factory
An extension for PageFactory class (selenium-page-factory)Main class:ExtendedPageFactory(AssertPageMixin, NavLocatorsMixin, FormButtonsMixin, PageFactory)Mixins:AssertPageMixin(title) -> Checks if the current page has the same title as given. The "assert_page" method verifies
if the title of the html page is the same as the title property of this class. It accepts a string as its argument
title_extension which will be concatenated to the title property.NavLocatorsMixin(nav_locators) -> Provides a class attribute to be added to PageFactory attribute locators. This is
a convenient way to add common navbar locators to several Page classes.FormButtonsMixin(form_buttons) -> Provides a list of form inputs such as save (value='Save'), save_and_new (
value='Save & New'), delete (value='Delete') etc. as a class attribute (form_buttons=[save, save_and_new, delete]). If
a tuple is given the second value indicates the locator. For example if the cancel button is in reality a
link:<a href="">Cancel</a>, add (cancel, "LINK_TEXT") to form_buttons.
Package: extended-tap-oracle
extended-tap-oracleSingertap that extracts data from aOracledatabase and produces JSON-formatted data following theSinger spec.How to use itRun and configuration of thisSinger Tapdepends of the desired replication mode (INCREMENTAL or STREAMING)Prerequisites : Create user on targeted PDBConnect to CDB, then switch to targetted PDBSQL> show con_name

CON_NAME
------------------------------
CDB$ROOT


SQL> alter session set container=wms17;

Session altered.

SQL> show con_name

CON_NAME
------------------------------
WMS17Tap-Oracle user need to be created with the following rights on DB :CREATE_SESSION system privilegegrant CREATE SESSION to singer_user;SELECT right on  V_$DATABASEgrant select on V_$DATABASE to singer_user;You can also grant select on table to singer, table by table or via SELECT ANY TABLE privilege (up to you)SELECT ANY TABLE system privilegegrant SELECT ANY TABLE to singer_user;Log based replicationTap-Oracle Log-based replication requires some configuration changes in Oracle database:EnableARCHIVELOGmodeSet retention period a reasonable and long enough period, ie. 1 day, 3 days, etc.Enable Supplemental loggingSetting up Log-based replication on a self hosted Oracle Database:To verify the current archiving mode, if the result isARCHIVELOG, archiving is enabled:SQL> SELECT LOG_MODE FROM V$DATABASETo enableARCHIVELOGmode (if not enabled yet):SQL> SHUTDOWN IMMEDIATE
  SQL> STARTUP MOUNT
  SQL> ALTER DATABASE ARCHIVELOG
  SQL> ALTER DATABASE OPENTo set retention period, use RMAN:RMAN> CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 1 DAYS;To enable supplemental logging:SQL> ALTER DATABASE ADD SUPPLEMENTAL LOG DATA (ALL) COLUMNSInstall and RunFirst, make sure Python 3 is installed on your system or follow these
installation instructions forMacorUbuntu.It's recommended to use a virtualenv:python3-mvenvvenvpipinstallextended-tap-oracleorpython3-mvenvvenv.venv/bin/activatepipinstall--upgradepippipinstall.ConfigurationRunning the the tap requires aconfig.jsonfile.Example with the minimal settings:{"host":"foo.com","port":1521,"user":"my_user","password":"password","sid":"ORCL","filter_schemas":"HR"#LetsgetonlytheHRsampleschema}You can run a discover run using the previousconfig.jsonfile to acquire all the tables definitiontap-oracle --config /tmp/config.json --discover >> /tmp/catalog.jsonThen use the catalog.json to run a full export:tap-oracle --config /tmp/config.json --catalog /tmp/catalog.json
Package: extended-tk
(es)DescripciÃ³n General:AmpliaciÃ³n del paquete TkInter con herramientas desarrolladas por necesidad de diferentes proyectos.Contenido>>> Add Delete Buttons (Add_Delete):Se trata de im pr de botones [+] [-] que copian o eliminan los elementos Tk de la fila en la que se encuentran.>>> ParÃ¡metros de entrada:min_row -> Por definiciÃ³n establecido en 1, establece el mÃ­nimo de filas que deben permanecermax_row -> Establece el mÃ¡ximo de copias as realzar, por definiciÃ³n establecido en -1, lo que indica que no hay lÃ­mite de copias.>>> Ejemplo de uso:if __name__==’__main__’:
root = Tk() # root creation
root.geometry(‘275x200’) # geometry of the window# items to be copied
Label(root, text=’Hola Mundo’).grid(row=0, column=0)
name = Entry(root)
name.grid(row=0, column=1)# buttons to add or delete rows of copied items
copy_buttons = Add_Delete(root, max_row=5) # configured to copy the row only 4 times, 5 rows in total countauto_move = Label(root, text=’Este texto se mueve solo!’)
auto_move.grid(row=1, column=1)copy_buttons.add_extra(auto_move)# mainloop
root.mainloop()>>> Control de versiones:0.12.0:   Primera version estable.0.13.0:   AÃ±adido en ScrollableWindow el mÃ©todo collect_children0.14.0:   AÃ±adida opciÃ³n de aÃ±adir otros elementos a los botones Add_Delete fuera de la lineaa copiar.This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free software
Foundation, either version 3 of the License, or (at your option) any later
version
Package: extender
A simple plug-in/extension system on Python inspired by Sentry project.[![Build Status](https://travis-ci.org/messense/extender.svg)](https://travis-ci.org/messense/extender)
[![Coverage Status](https://coveralls.io/repos/messense/extender/badge.png)](https://coveralls.io/r/messense/extender)## Installation
In your terminal run`bash pip installhttps://github.com/messense/extender/archive/master.zip`Or simply install it from PyPi by executing`bash pip install extender `## DocumentationFor more documentation please visit [ReadTheDocs](http://extender.readthedocs.org/en/latest/)## LICENSEThe MIT License (MIT)Copyright (c) 2014 messensePermission 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.
Package: extend-mt19937-predictor
Extend MT19937 PredictorPredict and Backtrack MT19937 PRNG by putting 32 * 624 bits generated numbers.Python "random" standard library uses mt19937, so we can easily crack it.UsageInstall$pipinstallextend_mt19937_predictorPredictAfter putting 32 * 624 bits numbers,  the internal state is uniquely determined. And the random number can be predicted at will.importrandomfromextend_mt19937_predictorimportExtendMT19937Predictorpredictor=ExtendMT19937Predictor()for_inrange(624):predictor.setrandbits(random.getrandbits(32),32)for_inrange(1024):assertpredictor.predict_getrandbits(32)==random.getrandbits(32)assertpredictor.predict_getrandbits(64)==random.getrandbits(64)assertpredictor.predict_getrandbits(128)==random.getrandbits(128)assertpredictor.predict_getrandbits(256)==random.getrandbits(256)BacktrackBesides prediction, it can also backtrack the previous random numbers.importrandomfromextend_mt19937_predictorimportExtendMT19937Predictornumbers=[random.getrandbits(64)for_inrange(1024)]predictor=ExtendMT19937Predictor()for_inrange(78):predictor.setrandbits(random.getrandbits(256),256)_=[predictor.backtrack_getrandbits(256)for_inrange(78)]forxinnumbers[::-1]:assertx==predictor.backtrack_getrandbits(64)Advancedcheckparam is True by default.  It is ok to put more than 32 * 624 bits numbers when initializing. It will automatically check whether the excess number is the same as the predicted number, and also change the internal state.When settingcheckparam to False, it will directly overwrite the state without checking.importrandomfromextend_mt19937_predictorimportExtendMT19937Predictorpredictor=ExtendMT19937Predictor(check=True)for_inrange(1024):predictor.setrandbits(random.getrandbits(32),32)for_inrange(1024):assertpredictor.predict_getrandbits(32)==random.getrandbits(32)importrandomfromextend_mt19937_predictorimportExtendMT19937Predictorpredictor=ExtendMT19937Predictor(check=True)for_inrange(624):predictor.setrandbits(random.getrandbits(32),32)_=predictor.setrandbits(0,32)# ValueError: this rand number is not correct: 0. should be: 2370104960Besides "random" standard library functiongetrandbits, these functions can be predicted.random
randrange
randint
uniformBut only these functions can be backtracked, because of cannot determine how many times the base functions are called by the others.random
uniformReferencehttps://github.com/kmyk/mersenne-twister-predictorhttps://en.wikipedia.org/wiki/Mersenne_Twister
Package: extend-noip
extend-noipExtend dns expiry date on noip.comAutomate dns/domain on noip.com中文读我.mdFork this repo.Set the resultant repoSecrets: NOIP_USERNAME's value toyour-noip-username/email, NOIP_PASSWORD's value toyour-noip-password[Optionally] Changecrontabin line 6 of.github/workflows/schedule-extend-noip.ymlto your like. (This online crontab editor may come handyhttps://crontab.guru/#0_0_/9__*)Installtionpipinstallextend-noipor clonehttps://github.com/ffreemt/extend-noipand install from the repo.UsageSupply noipusernameandpasswordfrom the command line:python-mextend-noip-uyour_noip_username-ppasswordor use directly theextend-noipscript:extend-noip-uyour_noip_username-ppasswordUse environment variablesNOIP_USERNAMEandNOIP_PASSWORDSet username/password from the command line:setNOIP_USERNAME=your_noip_username# export in Linux or iOSsetNOIP_PASSWORD=passwordOr set username/password  in .env, e.g.,# .envNOIP_USERNAME=your_noip_usernameNOIP_USERNAME=passwordRunextend-noiporpython -m  extend_noip:extend-noiporpython-mextend_noipCheck information onlyextend-noip-iorpython-mextend_noip-iPrint debug infoextend-noip-dorpython-mextend_noip-dBrief Helpextend-noip--helpshortorpython-mextend_noip--helpshortTurn off Headless Mode (Show the browser in action)You can configureNOIP_HEADFUL,NOIP_DEBUGandNOIP_PROXYin the.envfile in the working directory or any of its parent directoreis. For example,# .envNOIP_HEADFUL=1NOIP_DEBUG=true# NOIP_PROXYAutomation via Github ActionsIt's straightforward to setupextend-noipto run via Github Actions, best with an infrequent crontab.Fork this repoSetupActions secretsviaSettings/Add repository secrets:NameValueNOIP_USERNAME:your_noip_usernameNOIP_PASSWORD:your_noip_passwordFor example, in.github/workflows/schedule-extend-noip.ymlname:schedule-extend-noip

on:push:schedule:-cron:'10,40 3 */9 * *'...
setup,e.g.pipinstall-rrequirements.txtor
poetryinstall--no-dev
...-name:Testrunenv:NOIP_USERNAME:${{ secrets.NOIP_USERNAME}}NOIP_PASSWORD:${{ secrets.NOIP_PASSWORD}}run:|python-mextend_noip-d-i
Package: extendparser
Extend parser is set ofConfigParserextensions.GetandIncludeextensions are added to one classExtendParser. For more details see source
code, or use help.copyright:2018, see AUTHORS for more detailslicense:BSD, see LICENSE for more detailsLibraryExtendParser>>>fromextendparserimportExtendParser>>>cp=ExtendParser()IncludeInclude class can append content from other configuration files. Let’s have
these configuration files:# test.ini[main]string=value.include numbers.ini# numbers.iniinteger=42.include const.ini# const.inipi=3.14Here is the string buffer which ConfiguratinParser will read:# test.ini[main]string=value# numbers.iniinteger=42# const.inipi=3.14GetGet class has two smart methodsget_optionandget_sectionto get
value(s) in any type you want.>>>fromextendparser.getimportGet>>>cp=Get()>>>print(cp.get_option("test","number",target=int,fallback=1))1>>>print(cp.get_option("test","list",target=list,fallback=["a"],...delimiter=','))['a']>>>cp.add_section("test")>>>cp.set("test","tuple","a:b:c")>>>print(cp.get_option("test","tuple",target=tuple,delimiter=':'))('a','b','c')>>>print(cp.get_section("test",(("tuple",tuple,tuple(),':'),...("string",str,"value")))){'tuple':('a','b','c'),'string':'value'}EnvironmentEnviron module has two classes, which extendConfigParserto read
environment variables. There isEnvironFirstclass, which read environment
variables first, and then use original get method.>>>fromosimportenviron>>>fromconfigparserimportConfigParser>>>fromextendparser.environimportEnvironFirst>>>cp=EnvironFirst()>>>cp.add_section("test")>>>cp.getint("test","number",fallback=1)1>>>cp.set("test","number","7")>>>cp.getint("test","number")7>>>environ["TEST_NUMBER"]="42">>>cp.getint("test","number")42NextEnvironLastclass use environment variable as fallback for original get
method.>>>fromosimportenviron>>>fromconfigparserimportConfigParser>>>fromextendparser.environimportEnvironLast>>>cp=EnvironLast()>>>cp.add_section("test")>>>cp.getfloat("test","float",fallback=1.0)1.0>>>environ["TEST_FLOAT"]="42">>>cp.getfloat("test","float",fallback=1)42.0>>>cp.set("test","float","3.14")>>>cp.getfloat("test","float")3.14Installation~$pipinstallextendparser
Package: extends
extendsA simple Python library that adds a decorator which helps extend functionality of classes by new methods without inheriting themExamplefromdataclassesimportdataclassfromtypingimportListfromextendsimportextends@dataclassclassStudent:name:strmarks:List[int]@extends(Student)defavg(self:Student)->float:returnsum(self.marks)/len(self.marks)
Package: extensible-cache
PythonCacheSimple Library to do Python CachingGetting StartedTo install, simply use:pip install extensible-cache(Planning to add the library to PyPi in the future).The library is easy to use, just load a cache and provide it some data.importpandasaspdfromextensible_cacheimportPandasFileCachecache=PandasFileCache("./cache_folder")df=pd.read_csv("test.csv")cache["my_cool_data"]=df# ... somewhere later (even after restart) ...df_new=cache["my_cool_data"]This allows you to quickly buffer data to files and restore them later on.NotesAll contribtions are welcome!