Saravanan666/pypi-org huggingface dataset:
Package: oo_trees
This repository will contain several variants of decision tree /
ensemble classification algorithms, written in an object-oriented style.
My immediate goal is to try to reproduce some of the results fromthis
paperon canonical correlation
forests, which I am testing againstthe same
datasets.Where possible, external parameters names will matchscikit-learn’s
implementations ofdecision
treesandrandom
forests.UsageOne major difference fromscikit-learnis that datasets and their
attributes are treated as first-class objects. Additionally, all
classifiers must be initialized with their training dataset (as opposed
to callingfit).fromoo_trees.datasetimportDatasetfromoo_trees.decision_treeimportDecisionTreefromoo_trees.random_forestimportRandomForestX=examples# numpy 2D numeric arrayy=outcomes# numpy 1D arraydataset=Dataset(X,y)training_dataset,test_dataset=dataset.random_split(0.75)d_tree=DecisionTree(training_dataset)forest=RandomForest(training_dataset)print(d_tree.classify(test_dataset.X[0]))print(forest.classify(test_dataset.X[0]))d_tree_confusion_matrix=d_tree.performance_on(test_dataset)forest_confusion_matrix=forest.performance_on(test_dataset)print(d_tree_confusion_matrix.accuracy)print(forest_confusion_matrix.accuracy)When initializing datasets, we assume all attributes of the training
examples are categorical. If that is not the case, you can pass in an
additionalattribute_typesvariable on initialize:fromoo_trees.datasetimportDatasetfromoo_trees.attributeimportNumericAttribute,CategoricalAttributeX=examplesy=outcomesattributes=[NumericAttribute(index=0,name='age'),CategoricalAttribute(index=1,name='sex'),NumericAttribute(index=2,name='income')]dataset=Dataset(X,y,attributes)The logic for finding the best split is differs for each attribute type,
and in the future there may be additional type-specific parameters (such
as importance or number-to-name mappings) useful for classification or
display.
Package: oots-get
oots-getThis is a simple Python script to maintain a local archive of the web comic'The Order of the Stick', though can probably be modified reasonably
easily for others if required.This is awork in progressalthough base functionality is working perfectly.Primarily an exercise in using'Beautiful Soup'with a live target. Also I
love this comic and often spend time without internet.This is a rewrite from scratch of my original Ruby script of the same name.UsageInstallpipinstalloots-getQuick startRun the script :oots-getThis will parse the OOTS website, then download any missing comics. These comics
will be stored in thecomics/ootssubdirectory of the users home directory by
default though this will be changable shortly via settings file.This package has been tested to work under both Linux and Windows 10.Configuration FileTo be added.Command line switches--only-new( short form:-n) : only check for new up to the last comic
already downloaded, this speeds up operation.To-DoNot in any specific order :Improve error-checking and recoveryAdd command line options to modify configuration, and a config file. Any
options on command line to have precedence over settings specified in the
configuration file.Add command line options for quiet as well as the existing verbose, with same
options in the config file.Option to save log file for each run.Add testing!Add colours to the output, just because.Add option to start checking at the last downloaded comic instead of
start.ContributingFork itCreate your feature branch (git checkout -b my-new-feature)Commit your changes (git commit -am 'Added some feature')Push to the branch (git push origin my-new-feature)Create new Pull RequestBuildingCreate an 'editable' installFrom the root of the project, run the following which will install an editable
version of the package. This updates as you change the source, so no need to
keep reinstalling the package to test :pipinstall-e.(Do not forget the tailing period!)Build PackageInstall dependencies :pipinstall-rrequirements.txtRun Tests. There are only dummy tests at the moment, this will change shortly :pytestTo create the source and wheel packages :python-mbuildBuild documentation (from the docs subdiretory) :makehtmlCopyright(C) Grant Ramsay (grant@gnramsay.com) 2021.
Package: ooxmilker
OOXmilker is an Office Open XML parser that outputs HTML. It takes any Word (.docx, .docm), Excel (.xlsx, .xlsm), PowerPoint (pptx, pptm) or Visio (.vsdx, .vsdm)1file as an input. It returns every paragraphs from the file, one after the other.Installation:This package can be installed using the following instruction in a console:pipinstallooxmilkerUsage:Once the package installed, the module can be imported like so:importooxmilkerTo use OOXmilker, make a call toread()function. This function takes astringrepresenting the path to an Office Open XML file as argument.read()being a generator function, it must be part of some sort of loop.For example, the following script prints each paragraph from a Word file.file_path="C:\\Documents and Settings\\Guest\\My Documents\\document.docx"forpinooxmilker.read(file_path):print(p[0])print(p[1])Each iteration returns atuplewith 2 values. In the example above, valuep[0]is astringcontaining a single paragraph fromdocument.docxwith some HTML tags. Valuep[1]is adictionaryproviding context information on the paragraph.KeyPossible ValuesDescriptiontblTrueFalseIf True, the content is located inside a table. Does not apply to Excel files.chgTrueFalseIf True, the content contains changes (insertions or deletions). Applies to Word files only.Continuing with the same example,p[1].get("tbl")would either return abooleanTrueorFalse. If True, the paragraph is part of a table; if False, the paragraph is not part of a table.CompatibilityOOXmilker needs Python 3.6 to work.Features from Office Open XML format and their respective compatibility when using OOXmilker will be listed in the near future.1. Visio is not part of the OOXML standard, but still close enough for OOXmilker.
Package: ooxml
ooxml: Python interface for working with OOXML files such as xlsx, docx, pptx.For now only reading xlsx works.Here’s how to use it to read xlsx file:>>> from ooxml.spreadsheet import Spreadsheet
>>> workbook=Spreadsheet('book1.xlsx')             #read in book1.xlsx
>>> workbook.sheet_names
['Sheet1', 'Sheet3', 'Sheet2']
>>> sheet1 = workbook.sheet(1)                     #index start from 1, not 0
>>> row1 = sheet1.row(1)                           #you can get a row
>>> row1
<spreadsheet.Workrow object at 0xb7a8898c>
>>> row1.cell(1).value                             #access a cell value in a row
'1'
>>> sheet1.cell(2,1).value                         #access by sheet.cell(x,y), x is row, y is column
'2'
>>> sheet2 = workbook.sheet('Sheet2')              #use name instead of index to get a sheet
>>> cell = sheet2.cell(5,5)
>>> sheet2.save_csv('my.csv')                      #save content to csvWriting xlsx, reading/writing docx, pptx will be added later.
Package: ooze
OOZE - Brain-dead simple dependency injectionOoze is an attempt to do depdency injection in Python in the simplest
way possible.  It embraces Python decorators to leverage what classes,
functions, and even static values are included in the dependency
injection graph.  You can get started in three easy steps:decorate your functions, classes and/or variable itemsassign a startup functioncall ooze'srun()functionThat's it!  Here's a quick example:import ooze

@ooze.provide                       # Inject as 'upper_case' since a name wasn't specified
def upper_case(string):
    return string.upper()


ooze.provide_static('address', {    # Inject a static dictionary, naming it 'address'
    "name": "Steve",
    "gender": "male"
})


@ooze.provide('greeter')            # Inject as 'greeter'
class WelcomeWagon:
    def __init__(self, upper_case, address):
        self.address = address
        self.upper = upper_case

    def greet(self):
        return self.upper(f"Hello {self.address['name']}")


@ooze.startup               # Define where ooze should start running your program
def main(greeter):
    print(greeter.greet())


if __name__ == '__main__':
    ooze.run()Installing OozeInstalling Ooze is as simple as using pip:$ pip install oozeUsage NotesOoze hasmanyfeatures beyond what is demonstrated in the above sample code
including:factoriesautomatic environment variable injectionautomatic configuration file parsing and settings injectionautomatic (magic) integration with manually passed argumentsseamless integration withbottlepyinjectable object pools (i.e. Database connection pools)Be sure to check out thedocumentationorexamplesfor more information.
Package: opac_htmlgen
opac_htmlgenSmall lib to generte HTML artcle page from (SciELO) SPS XML filesFree software: MIT licenseDocumentation:https://opac-htmlgen.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2017-08-10)First release on PyPI just for testing the process.
Package: opacity_calculator
Readme fileAuthor: Ben de Vries and Robin LombaertContact:bldevries.science@gmail.comWeb: www.stjerke.comGithub:https://github.com/bldevriesPyPi:https://pypi.python.org/pypi/opacity_calculatorImplementations and versionsImplementations in the current version (Beta 0.1):Grain shapes: Implemented CDE grainsGrain sizes: single grain sizeOptical constants in database: olivine (amorph and crystalline), carbon, icesBenchmarked with Michiels code (Min et al 2009)Next version (Beta 1.0)Grain shapes: implement MIE and CDE grainsGrain sizes: single grain sizeOptical constants in database:silicates (olivine and pyroxene, amorph and crystalline)oxidescarbonicesAble to use your own optical constantsFuture versions:Grain shapes: implement MIE, DHS, GRF and CDE grainsGrain sizes: single grain size and grain size distributionsOptical constants in database:Full JENA database avaliable in the SQLite databaseAble to use your own optical constantsOther functions:Enable saving of the opacities in a local SQLite DBInstallation:PyPi:run: pip install opacity_calculatorGithubDownload the files from github. Inside the opacity_calculator directory type (if you need permissions, with sudo): python setup.py installTo test if it works type python to go into python and then “import opacity_calculator”IntroductionComing…Getting started: an exampleIf you have the opacity_calculator installed and want to test how it works and plot a spectrum with the matplotlib package. Go into python and type:import opacity_calculator as ocopacitiesForsterite = oc.getOpacity(“fo050”, 1.0, print_console_output = True)import matplotlib.pyplot as pltplt.plot(opac.getX(), opac.getY())plt.show)If you want to try another mineral, check the content of the database in the following way:import opacity_calculator as ococ.printDatabase()You can use the labels in the label column to generate opacities with the getOpacity function.General code structure and classesClasses & FilesPackage and python scripts__init__.pymain.pyDataClasses:DataClass_SQLData.pyDataClass_OpticalConstants.pyDataClass_Opacity.pyCalculatorsCalculator_CDE.pyCalculator_MIE.pyCalculator_DHS.pyDatabase files:SQLITE_DATABASE.dbDatabases and table structureFilename: SQLITE_DATABASE.dbTable: OpticalConstantsTable
Package: opaclient
opa-python-clientAbstractbuild.securityprovides simple development and management for your organization's authorization policy.opa-python-clientis a Python 3 package that performs authorization requests against build.security PDPs (Policy Decision Point)/OPA.Data FlowUsageBefore you start we recommend completing the onboarding tutorial.Important noteTo simplify the setup process, the following example uses a localbuild.security PDP instance.
If you are already familiar with how to run your PDP, You can also run a PDP on your environment (Dev/Prod, etc).In that case, don't forget to change thehostnameandportin your code.Simple usageInitialize the client, initialize some input for the PDP, and make a request:from from opaclient import PolicyDecisionPointClient, PolicyDecisionPointInput, AuthzException

client = PolicyDecisionPointClient(hostname='http://some.host', port=8181,
             policy_path='mypolicy', read_timeout_milliseconds=100, connection_timeout_milliseconds=100,
             retry_max_attempts=5, retry_backoff_milliseconds=1000)

input = PolicyDecisionPointInput(schema='http', method='POST', more_authz_context=some_value,
             even_more_authz_context=some_other_value=some_other_value)

try:
    authz = client.authorize(input)
except AuthzException as e:
    raise

if authz:
    print('The request has been authorized!')Mandatory configuration to initialize the clienthostname- The hostname of the Policy Decision Point (PDP)port- The port at which the PDP service is serving authz decisionspolicy_path- Full path to the policy (including the rule) that decides whether requests should be authorizedHow to get your pdp's hostname and port?Optional configurationretry_max_attempts- the maximum number of retry attempts in case a failure occurs.Default is 2.read_timeout_milliseconds- Read timeout for requests in milliseconds.Default is 5000connection_timeout_milliseconds- Connection timeout in milliseconds.Default is 5000retry_backoff_milliseconds- The number of milliseconds to wait between two consecutive retry attempts.Default is 250
Package: opac-mixer
DeepSet opacity mixerThis repository includes the tools to train a DeepSet k-table mixer, as described in detail in Schneider et al. (2023).The documentation for the code and tutorials are provided here:link to docsIf you find this work useful, please consider to cite the following paper:
Schneider et al. (in review)WARNING: The paper is not yet published, please do not use this code, before it is published
Package: opalart
Opal ArtGathers beautiful art. Perhaps as beautiful asOpal.Installing$pipinstallopalartQuick Startimportopalartclient=opalart.yandere()images=awaitclient.getposts(['thighhighs'])# Do stuff with the imagesOr grab a single image.This makes the same call as the above, but returns a single random image from the results.importopalartclient=opalart.yandere()image=awaitclient.randpost(['thighhighs'])# Do stuff with the image
Package: opal-azure-cli-advisor
Microsoft Azure CLI ‘advisor’ Command ModuleThis package is for the ‘advisor’ module.
i.e. ‘az advisor’Release History2.0.0GA release.0.6.0BREAKING CHANGE: ‘show’ commands log error message and fail with exit code of 3 upon a missing resource.0.5.2Minor fixes.0.5.1sdistis now compatible with wheel 0.31.00.5.0BC:advisor configuration gethas been renamed toadvisor configuration list.BC:advisor configuration sethas been renamed toadvisor configuration update.BC:advisor recommendation generatehas been removed.advisor recommendation listhas a new –refresh parameter.advisor recommendation showhas been added.Support Autorest 3.0 based SDKs0.1.2Minor fixes.0.1.1Update for CLI core changes.0.1.0Initial release of module.
Package: opal-azure-cli-ams
Microsoft Azure CLI ‘ams’ Command ModuleThis package is for the ‘ams’ module.
i.e. ‘az ams’Release History0.4.7Return ISO 8601 time strings for archive-window-length and key-frame-interval-duration.0.4.6Minor fixes.0.4.5Bug fix for asset and account filters update.0.4.4Theaccount-filterandasset-filterparameter–bitratehas been deprecated and will be removed in a future release.
It has been renamed to–first-quality.New encryption parameters support inams streaming-policy createcommand added.New paramterfiltersadded to ams streaming-locator create.0.4.3Minor fixes.0.4.1ams streaming-endpoint [start | stop | create | update] : added ‘wait’ commandams live-event [create | start | stop | reset] : added ‘wait’ command0.4.0BREAKING CHANGE: asset group commandams asset get-streaming-locatorsrenamedams asset list-streaming-locators.BREAKING CHANGE: streaming-locator group commandams streaming-locator get-content-keysrenamedams streaming-locator list-content-keys.0.3.2Minor fixes0.3.1Minor fixes0.3.0New command groups added:ams account-filterams asset-filterams content-key-policyams live-eventams live-outputams streaming-endpointams mruNew commands to existing groups added:ams account check-nameams job updateams asset get-encryption-keyams asset get-streaming-locatorsams streaming-locator get-content-keysEncryption parameters support inams streaming-policy createcommand added.ams transform output removenow can be performed by passing the output index to remove.–correlation-dataand–labelarguments added forams jobcommand group.–storage-accountand–containerarguments added forams assetcommand group.Default values for expiry time (Now+23h) and permissions (Read) inams asset get-sas-urlcommand added.BREAKING CHANGE:ams streaming locatorbase command replaced withams streaming-locator.BREAKING CHANGE:–content-keysargument fromams streaming locatorcommand updated.BREAKING CHANGE:–content-policy-namerenamed to–content-key-policy-nameinams streaming locatorcommand.BREAKING CHANGE:ams streaming policybase command replaced withams streaming-policy.BREAKING CHANGE:–preset-namesargument replaced with–presetinams transformcommand group. Now you can only set 1 output/preset at a time (to add more you have to runams transform output add). Also, you can set custom StandardEncoderPreset by passing the path to your custom JSON.BREAKING CHANGE:–output-asset-names ` renamed to `–output-assetsinams job startcommand. Now it accepts a space-separated list of assets in ‘assetName=label’ format. An asset without label can be sent like this: ‘assetName=’.0.2.4Minor fixes0.2.3Minor fixes0.2.2Minor changes0.2.1Consuming multi api azure.mgmt.authorization package0.2.0BREAKING CHANGE: ‘show’ commands log error message and fail with exit code of 3 upon a missing resource.0.1.1Minor changes0.1.0Initial release of module.
Package: opal-azure-cli-backup
Microsoft Azure CLI ‘backup’ Command ModuleThis package is for the ‘backup’ module.
i.e. ‘az backup’Release History1.2.4Minor fixes.1.2.3Minor fixes.1.2.2Minor fixes.1.2.1backup vault backup-properties show: exception handling to exit with code 3 upon a missing resource for consistency.1.2.0BREAKING CHANGE: ‘show’ commands log error message and fail with exit code of 3 upon a missing resource.1.1.2Minor fixes.1.1.1sdistis now compatible with wheel 0.31.01.1.0Added new command ‘az backup protection isenabled-for-vm’. This command can be used to check if a VM is backed up by any vault in the subscription.Enabled –ids for vault_name and resource_group parameters for the following commands:
az backup container show
az backup item set-policy
az backup item show
az backup job show
az backup job stop
az backup job wait
az backup policy delete
az backup policy get-default-for-vm
az backup policy list-associated-items
az backup policy set
az backup policy show
az backup protection backup-now
az backup protection disable
az backup protection enable-for-vm
az backup recoverypoint show
az backup restore files mount-rp
az backup restore files unmount-rp
az backup restore restore-disks
az backup vault delete
az backup vault show‘name’ parameters now accept the name format as output from the show commands.1.0.7Support Autorest 3.0 based SDKs1.0.6New feature: ‘az backup item list’ command now has ‘–container-name’ parameter as optional instead of mandatory and output contains item health details.New feature: Added original storage account option in ‘az backup restore restore-disks’ command.Bugs fixed: VM and vault location check must be case insensitive in ‘az backup protection enable-for-vm’ command.1.0.5When a non-existent name is supplied for a container, commands will not fail with a stack trace. Partially fixes #4502.az backup item list update: ‘Health Status’ of an item is now visible in the default table view.1.0.4Minor fixes.1.0.3Minor fixes.1.0.2no changes1.0.1 (2017-09-22)Preview release.
Package: opal-azure-cli-billing
Microsoft Azure CLI ‘billing’ Command ModuleThis package is for the ‘billing’ module.
i.e. ‘az billing’Release History0.2.1Minor fixes0.2.0BREAKING CHANGE: ‘show’ commands log error message and fail with exit code of 3 upon a missing resource.0.1.9Minor fixes.0.1.8Add enrollment account commandssdistis now compatible with wheel 0.31.00.1.7Update for CLI core changes.0.1.6minor fixes0.1.5 (2017-09-22)minor fixes0.1.4 (2017-08-28)minor fixes0.1.3 (2017-07-07)minor fixes0.1.2 (2017-06-21)No changes.0.1.1 (2017-06-13)Minor fixes.0.1.0 (2017-05-30)Initial release
Package: opal-azure-cli-cdn
Microsoft Azure CLI ‘Content Delivery Network (CDN)’ Command ModuleThis package is for the ‘Content Delivery Network (CDN)’ module.
i.e. ‘az cdn’Release History0.2.3Minor fixes.0.2.2Add support for Microsoft_Standard and Standard_ChinaCdn0.2.1cdn endpoint create/update/start/stop/delete/load/purge: Added support for–no-wait.0.2.0BREAKING CHANGE:cdn endpoint create’s default query string caching behaviour no longer defaults to “IgnoreQueryString”. It is now set by the service.0.1.1Update azure-mgmt-cdn dependency to 3.0.00.1.0BREAKING CHANGE: ‘show’ commands log error message and fail with exit code of 3 upon a missing resource.0.0.15Minor fixes.0.0.14Minor fixes.sdistis now compatible with wheel 0.31.00.0.13Addcdn custom-domain enable/disable-httpscommands.0.0.12cdn custom-domain create: Fixed missing client issue.0.0.11Update for CLI core changes.0.0.10minor fixes0.0.9 (2017-09-22)minor fixes0.0.8 (2017-09-11)cdn custom-domain create: Fixed ‘CustomDomain is not interable’ bug.0.0.7 (2017-08-28)minor fixes0.0.6 (2017-07-07)minor fixes0.0.5 (2017-06-21)No changes.0.0.4 (2017-06-13)Minor fixes.0.0.3 (2017-05-30)Add exception handler for endpoint list that provides a better message when the profile specified by ‘–profile-name’ does not exist.0.0.2 (2017-05-09)Minor fixes.0.0.1 (2017-05-05)Add support for CDN commands.
Package: opal-azure-cli-cloud
Microsoft Azure CLI ‘cloud’ Command ModuleThis package is for the ‘cloud’ commands.Release History2.1.1az cloud set: support cloud name case insensitive2.1.0BREAKING CHANGE: ‘show’ commands log error message and fail with exit code of 3 upon a missing resource.2.0.15Add acr login server suffix to cloud config.2.0.14Minor fixes2.0.13sdistis now compatible with wheel 0.31.02.0.12Performance fixes.2.0.11Bug fix: Do not require endpoints to be specified when setting –profile for a cloud.2.0.10az cloud register&az cloud update: Prevent users from registering clouds that have missing required endpoints2.0.9minor fixes2.0.8 (2017-09-22)minor fixes2.0.7 (2017-07-27)Change api version of cloud metadata endpoint to YYYY-MM-DD format.Gallery endpoint isn’t required2.0.6 (2017-07-07)Support for registering cloud just with ARM resource manager endpoint2.0.5 (2017-06-21)Provide an option for ‘az cloud set’ to select the profile while selecting current cloudExpose ‘endpoint_vm_image_alias_doc’2.0.4 (2017-06-13)Minor fixes.2.0.3 (2017-05-30)Minor fixes.2.0.2 (2017-04-28)New packaging system.2.0.1 (2017-04-17)Add profile switching params and profile listing commandModify ‘az cloud register’ and ‘az cloud update’ to include the ‘—profile’ parameter2.0.0 (2017-02-27)GA release.0.1.2rc2 (2017-02-22)Documentation updates.0.1.2rc1 (2017-02-17)Handle cloud switching in more user friendly way + remove contextDefault to active cloud name and add descriptions for cloud commands0.1.1b2 (2017-01-30)Support Python 3.6.0.1.1b1 (2017-01-17)Preview release. (no source code changes since previous version).0.1.0b11 (2016-12-12)Preview release.