Saravanan666/pypi-org huggingface dataset:
Package: resolvelib
ResolveLib at the highest level provides aResolverclass that includes
dependency resolution logic. You give it some things, and a little information
on how it should interact with them, and it will spit out a resolution result.Intended Usageimport resolvelib

# Things I want to resolve.
requirements = [...]

# Implement logic so the resolver understands the requirement format.
class MyProvider:
    ...

provider = MyProvider()
reporter = resolvelib.BaseReporter()

# Create the (reusable) resolver.
resolver = resolvelib.Resolver(provider, reporter)

# Kick off the resolution process, and get the final result.
result = resolver.resolve(requirements)The provider interface is specified inresolvelib.providers. You don’t
need to inherit anything, however, only need to implement the right methods.TerminologyThe intention of this section is to unify the terms we use when talking about
this code base, and packaging in general, to avoid confusion. Class and
variable names in the code base should try to stick to terms defined here.Things passed intoResolver.resolve()and provided by the provider are all
considered opaque. They don’t need to adhere to this set of terminologies.
Nothing can go wrong as long as the provider implementers can keep their heads
straight.PackageA thing that can be installed. A Package can have one or more versions
available for installation.VersionA string, usually in a number form, describing a snapshot of a Package. This
number should increase when a Package posts a new snapshot,
i.e a higher number means a more up-to-date snapshot.SpecifierA collection of one or more Versions. This could be a wildcard, indicating that
any Version is acceptable.CandidateA combination of a Package and a Version, i.e. a “concrete requirement”. Python
people sometimes call this a “locked” or “pinned” dependency. Both of
“requirement” and “dependency”, however, SHOULD NOT be used when describing a
Candidate, to avoid confusion.Some resolver architectures refer this as a “specification”, but it is not
used here to avoid confusion with aSpecifier.RequirementAn intention to acquire a needed package, i.e. an “abstract requirement”. A
“dependency”, if not clarified otherwise, also refers to this concept.A Requirement should specify two things: a Package, and a Specifier.ContributingPlease seedeveloper documentation.
Package: resolve_link
Resolve complete/partial URLs against a canonical target URLThis library was built to resolve URLs when candidates submit incompleted URLs (e.g. missing protocol, username only).# Username onlyresolve_link('underdogio','https://github.com/')# https://github.com/underdogio# Missing protocolresolve_link('www.linkedin.com/in/toddwolfson','https://www.linkedin.com/')# https://www.linkedin.com/in/toddwolfson# Custom websiteresolve_link('https://underdog.io/','https://www.linkedin.com/')# https://underdog.io/# Complete URLresolve_link('https://github.com/underdogio','https://github.com/')# https://github.com/underdogioThis is a port of our JavaScript libraryresolve-link.Getting StartedInstall the module with:pip install resolve_linkfromresolve_linkimportresolve_linkresolve_link('underdogio','https://github.com/')# https://github.com/underdogioDocumentationWe exposeresolve_linkvia our packageresolve_link.resolve_link(src_url, target_url)Resolve the best variation ofsrc_urlwith respect to ourtarget_urlsrc_urlstr- URL/partial URL to be resolving fromtarget_urlstr- Canonical URL to try to match if on the same domainReturns:ret_valstr- Completed URL formatted viaurllib.parseContributingIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Test vianosetests.LicenseCopyright (c) 2015 Underdog.ioLicensed under the MIT license.
Package: resolve-march-native
Aboutresolve-march-nativeis a small command line tool to resolve-march=nativeinto explicit GCC flags.Example$resolve-march-native--vertical-march=bonnell-mno-cx16--param l1-cache-line-size=64--param l1-cache-size=24Usage$COLUMNS=80resolve-march-native--helpusage: resolve-march-native [-h] [--debug] [--gcc COMMAND] [--vertical][--keep-identical-mtune] [--keep-mno-flags][--add-recommended] [--version]options:-h, --help            show this help message and exit--debug               enable debugging (default: disabled)--gcc COMMAND         gcc command (default: gcc)--vertical            produce vertical output (default: horizontal output)--keep-identical-mtunekeep implied -mtune=... despite architecture identicalto -march=... (default: stripped away)--keep-mno-flags      keep -mno-* parameters (default: (superfluous ones)stripped away)--add-recommended, -aadd recommended flags (default: not added)--version             show program's version number and exitSoftware libre licensed under GPL v2 or later.Brought to you by Sebastian Pipping <sebastian@pipping.org>.Please report bugs at https://github.com/hartwork/resolve-march-native/issues — thank you!
Package: resolve-name-clash
resolve-name-clashSay you want to copy filea.txtinto directory/path/to/destination/but if/path/to/destination/a.txtexists, you don't want to overwrite it but instead copy the file to/path/to/destination/a_1.txt. This is a simple utility that does exactly one thing: given a source filename and a destination directory, it figures out a form of the source file's name in the destination directory that doesn't clash with any existing file.The algorithm it uses to find a unique filename is as follows. Given a path to a source file and a path to a destination directory:Setsrc_filenameto the filename (last path segment) of the path to the source fileIfpath/to/dest/src_filenamedoes not exist, return itIfpath/to/dest/src_filenameexists:Setsrc_file_basenametosrc_filenamewith all the extensions removed andsrc_file_extensionsto all the extensions ofsrc_filenameSuccessively trypath/to/dest/src_file_basename + "_1" + src_file_extensions,path/to/dest/src_file_basename + "_2" + src_file_extensions, and so on until one is found that doesn't exist. Return that one.You can use it on the command line:$ resolve-name-clash ~/src/a.txt ~/dest/
/Users/spather/dest/a_1.txtIt's particularly useful used in a subshell with a copy or move command:cp ~/src/a.txt $(resolve-name-clash ~/src/a.txt ~/dest)Or you can us it in a python program:fromresolve_name_clashimportresolve_name_clashsrc=Path("/path/to/src/a.txt")dest=Path("/path/to/dest")unique_path=resolve_name_clash(src,dest)# unique_path will be a Path object to something like /path/to/dest/a_1.txt
Package: resolver_deco
Usagefromresolver_decoimportresolver@resolver('obj')defget_attribute(obj,name):returngetattr(obj,name)importos.pathassertget_attribute('os.path','isdir')==os.path.isdirYou can resolve more than one argument:fromresolver_decoimportresolver@resolver('obj','value')defset_attribute(obj,name,value):returnsetattr(obj,name,value)set_attribute('collections.UserDict','val','os.path')importcollections,os.pathassertcollections.UserDict.valisos.pathTests$pipinstallpytest$py.testtests.py-v
Package: resolve-robotics-uri-py
resolve-robotics-uri-pyPure Python package (that only depends on Python stdlib) to resolve a package:// (ROS-style) or model:// (Gazebo-style) URI to an absolute filename.InstallationInstall using onle one of the following commands to install in an existing environment:Installation from conda-forgemambainstall-cconda-forgeresolve-robotics-uri-pyInstallation from PyPIpython-mpipinstallresolve-robotics-uri-pyUsage in PythonAddimport resolve_robotics_uri_pyto your Python file, then take inspiration from the following examples.If you want to get the location of theiCubGazeboV2_7iCub model installed fromicub-models:absolute_path=resolve_robotics_uri_py.resolve_robotics_uri("package://iCub/robots/iCubGazeboV2_7/model.urdf")If you want to get the location of theergoCubSN00model installed fromergocub-software:absolute_path=resolve_robotics_uri_py.resolve_robotics_uri("package://ergoCub/robots/ergoCubSN000/model.urdf")If you want to get the location of thepandamodel installed bymoveit_resources_panda_description:absolute_path=resolve_robotics_uri_py.resolve_robotics_uri("package://moveit_resources_panda_description/urdf/panda.urdf")Command Line usageresolve_robotics_uri_pyalso install a command line tool calledresolve-robotics-uri-pyfor use in scripts, that can be used as:resolve-robotics-uri-py package://iCub/robots/iCubGazeboV2_7/model.urdfFor example,  on bash this can be used to easily convert the a urdf specified viapackage://to an sdf (assuming you have Gazebo installed), using thebacktick operator:gz sdf -p `resolve-robotics-uri-py package://iCub/robots/iCubGazeboV2_7/model.urdf`ContributingPull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseBSD-3-Clause
Package: resolwe
Resolwe is an open source dataflow package forDjango framework. We envision
Resolwe to follow theCommon Workflow Languagespecification, but the
current implementation does not yet fully support it. Resolwe offers a complete
RESTful API to connect with external resources. A collection of bioinformatics
pipelines is available inResolwe Bioinformatics.Docs & HelpRead about architecture, getting started, how to writeprocesses, RESTful API
details, and API Reference in thedocumentation.To chat with developers or ask for help, join us onSlack.InstallPrerequisitesResolwe runs onPython3.6 or later If you don’t have it yet, followthese
instructions.It’s easiest to run other required services in Docker containers If you don’t
have it yet, you can follow theofficial Docker tutorialfor Mac and for
Windows or install it as a distribution’s package in most of standard Linux
distributions (Fedora, Ubuntu,…).UsingPyPIpip install resolweUsing source onGitHubpip install https://github.com/genialis/resolwe/archive/<git-tree-ish>.tar.gzwhere<git-tree-ish>can represent any commit SHA, branch name, tag name,
etc. inResolwe’s GitHub repository. For example, to install the latest
Resolwe from themasterbranch, use:pip install https://github.com/genialis/resolwe/archive/master.tar.gzContributeWe welcome new contributors. To learn more, readContributingsection of our
documentation.
Package: resolwe-bio
Bioinformatics pipelines for theResolwedataflow package forDjango
framework.Docs & HelpRead about getting started and how to writeprocessesin thedocumentation.To chat with developers or ask for help, join us onSlack.InstallPrerequisitesMake sure you havePython3.6 installed on your system. If you don’t have it
yet, followthese instructions.Resolwe requiresPostgreSQL(9.4+). Many Linux distributions already include
the required version of PostgreSQL (e.g. Fedora 22+, Debian 8+, Ubuntu 15.04+)
and you can simply install it via distribution’s package manager.
Otherwise, followthese instructions.Additionally, installing some (indirect) dependencies fromPyPIwill require
having a C compiler (e.g.GCC) as well as Python development files installed
on the system.NoteThe preferred way to install the C compiler and Python development files is to
use your distribution’s packages, if they exist. For example, on a
Fedora/RHEL-based system, that would mean installinggccandpython3-develpackages.UsingPyPIpip install resolwe-bioTo install a pre-release, use:pip install --pre resolwe-bioUsing source onGitHubpip install --pre https://github.com/genialis/resolwe-bio/archive/<git-tree-ish>.tar.gzwhere<git-tree-ish>can represent any commit SHA, branch name, tag name,
etc. inResolwe Bioinformatics’ GitHub repository. For example, to install
the latest Resolwe Bioinformatics from themasterbranch, use:pip install --pre https://github.com/genialis/resolwe-bio/archive/master.tar.gzContributeWe welcome new contributors. To learn more, readContributingsection of the
documentation.
Package: resolwe-runtime-utils
A project that provides convenience utilities for writing processes for theResolwedataflow engine.Theimport_filefunction requires7zin path.You can find more information in thedocumentation.Getting startedInstall Resolwe Runtime Utilities fromPyPI:pip install resolwe-runtime-utilsUse them in your Python Resolwe process:fromresolwe_runtime_utilsimportinfo,save_fileinfo('Some info')save_file('etc','foo.py')Or use them in your Bash Resolwe process:re-info "Some info"
re-save-file "etc" "foo.py"ContributeWe welcome new contributors. To learn more, readContributingsection of our
documentation.
Package: resomapper
Welcome toresomapper, a pipeline for processing MR images and generating parametric maps.This tool is designed and developed by theBiomedical Magnetic Resonance Labat theInstituto de Investigaciones Biomédicas "Alberto Sols"(CSIC-UAM). This project aims to collect a series of MR image processing tools written in Python under a friendly user interface for the lab needs. It is designed to streamline the processing of images, starting from raw adquisition files (we use Bruker study folders) to end up with parametric maps such as T1, T2 or T2* maps, as well as diffusion metric maps derived from DTI analysis.Note thatresomapperis a tool under active development, with new features and improvements still on the way. It is used in-house for preclinical MRI data, mainly for mouse brain imaging, but can be used for different types of MRI data. Any suggestions are welcome!For more info, visit thewhole documentation.InstallationTo installresomapper, follow these steps:Make sure that you have Python installed on your system. Versions supported are3.8and above.Optional: create a virtual environment with conda or venv.Installresommaperand all its dependencies running the following command from your terminal:pip install resomapperIf you have already been usingresomapperand there is any new version available, you can use the following command to update it:pip install resomapper --upgradeUsageThen, to start usingresomapper, you'll need to follow these steps:Prepare a working directory (an empty folder located wherever you want) and store inside the studies you want to process as folders inBrukerraw format.Enter the command shown below to run the program's Command Line Interface.resomapper_cliFollow the instructions shown in the terminal.Finally, retrieve all the resulting maps and files obtained after processing from the same working folder you selected at the start of the program.ContributingInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.Licenseresomapperwas created by Biomedical-MR. It is licensed under the terms of the MIT license.
Package: resosuma
Resosumaresosuma(short forresearchsoftwaresustainabilitymap) is a package for
Python 3 which provides a data model (directed graph) for activities in the
research software sustainability space (“the space”).In the graph,actors(i.e., entities that act within the space) andactees(i.e., entities which are acted on) are represented as nodes, andactionsare represented as edges.Currently, aresosumamodel can be instantiated by reading the data from
3-column CSV, where the first column is theactorof anaction, the
second column is theactionitself, and the third column is theacteeof
theaction.Requirementsresosumarequires Python 3 (tested against 3.4, 3.5, 3.6).InstallationInstall resosuma with pip:pip install resosumaUsageTo instantiate aresosumamodel of typeActivityGraph, you can call:from resosuma.graph.activitygraph import ActivityGraph

graph = ActivityGraph()
graph.read_csv(csvpath)Once the model is instantiated, you can inspect it via:graph.get_activities()
graph.get_nodes()Scriptsvisualize.pyvisualizes the model via graphviz.:usage: visualize.py [-h] csv_file output {svg,pdf,png}

positional arguments:
  csv_file       The path of the input CSV file
  output         The path of the output file
  {svg,pdf,png}  The output format

optional arguments:
  -h, --help     show the help message and exitHow to citeThe metadata necessary for citingresosumacan be found in theCITATION.cfffile.ContributeThis project welcomes contributions.
Please suggest features and report bugs via issues.
Package: resotoappbundler
resotoappbundler/resotoapprunnerResoto Infrastructure Apps Bundler and RunnerTable of contentsOverviewUsageContactLicenseOverviewresotoappbundlerBundles Resoto Infrastructure Apps.resotoapprunnerDry runs Resoto Infrastructure Apps.Checkthe Resoto Infrastructure Apps repofor details.Usage ofresotoappbundlerresotoappbundler--pathresoto-apps/--discover>index.jsonThis command discovers all apps in the current directory and writes the index toindex.json. This file can then be uploaded to a http server like a CDN and used as an app index in Resoto.usage:resotoappbundler[-h][--machine-help][--verbose|--trace|--quiet]--pathAPP_PATH[--discover]ResotoInfrastructureAppsBundler

options:-h,--helpshowthishelpmessageandexit--machine-helpprintmachinereadablehelp--verbose,-vVerboselogging--traceTragelogging--quietOnlylogerrors--pathAPP_PATH,-pAPP_PATHPathtoappbundle(s)--discoverFindallappsinthepathUsage ofresotoapprunnerresotoapprunner--pathresoto-apps/tagvalidator/--pskchangeme--resotocore-urihttps://localhost:8900Note: Resoto Core is only required for apps that make use of thesearch()function.usage:resotoapprunner[-h][--machine-help][--verbose|--trace|--quiet]--pathAPP_PATH[--ca-certCA_CERT][--certCERT][--cert-keyCERT_KEY][--cert-key-passCERT_KEY_PASS][--no-verify-certs][--resotocore-uriRESOTOCORE_URI][--pskPSK][--configCONFIG_PATH][--subscriber-idSUBSCRIBER_ID]ResotoInfrastructureAppsRunner

options:-h,--helpshowthishelpmessageandexit--machine-helpprintmachinereadablehelp--verbose,-vVerboselogging--traceTragelogging--quietOnlylogerrors--pathAPP_PATH,-pAPP_PATHPathtoappbundle(s)--ca-certCA_CERTPathtocustomCAcertificatefile--certCERTPathtocustomcertificatefile--cert-keyCERT_KEYPathtocustomcertificatekeyfile--cert-key-passCERT_KEY_PASSPassphraseforcertificatekeyfile--no-verify-certsTurnoffcertificateverification--resotocore-uriRESOTOCORE_URIresotocoreURI(default:https://localhost:8900)--pskPSKPre-sharedkey--configCONFIG_PATHPathtoappconfig--subscriber-idSUBSCRIBER_IDUniquesubscriberID(default:resotoappbundler)```ContactIf you have any questions feel free tojoin our Discordoropen a GitHub issue.LicenseCopyright 2023 Some Engineering Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: resotoclient
resotoclient-pythonPython client for ResotoInstallationpipinstallresotoclientFor GraphVis and Pandas support:pipinstallresotoclient[extras]UsagefromresotoclientimportResotoClientclient=ResotoClient(url="https://localhost:8900",psk="changeme")instances_csv=client.cli_execute("search is(instance) | tail 5 | list --csv")forinstanceininstances_csv:print(instance)Pandas Dataframesdf=client.dataframe("is(instance)")GraphViz Digraphgraph=client.graphviz("is(graph_root) -->")TestThe tests expect a ResotoCore on localhost with the default PSKchangeme.
You can start it locally via:$>resotocore--graphdb-databaseresotoclient_test--pskchangemeA local test environment is required. See thecontribution guidefor instructions.
When the virtual environment is available, use those commands to set up the project and run the tests:$>pipinstall--upgradepippoetrynoxnox-poetry
$>noxFor more examples see the examples directory.Publishbump the version number in pyproject.tomlpoetry buildpoetry publish
Package: resotonotebook
resotonotebookSmall library for using Resoto with Jupyter Notebooks.InstallationpipinstallresotonotebookUsagefromresotonotebookimportResotoNotebookrnb=ResotoNotebook("https://localhost:8900",None)rnb.search("is(instance)").groupby(["kind"])["kind"].count()kind
aws_ec2_instance        497
digitalocean_droplet      7
example_instance          2
gcp_instance             12
Name: kind, dtype: int64For more see the notebook in the examples directory.
Package: resoto-plugin-aws
resoto-plugin-awsAn AWS collector plugin for Resoto.UsageFor details on how to edit configuration, please seethe documentation.When the collector is enabled (resotoworker.collector = [aws]) it will automatically collect any accounts the AWS boto3 SDK can authenticate for.
By default it will check for environment variables likeAWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEYorAWS_SESSION_TOKEN.If Resoto should assume an IAM role that role can be given viaresotoworker.aws.role = SomeRoleName.The collector will scrape resources in all regions unless regions are specified using e.g.resotoworker.aws.region = [us-east-1, us-west-2].Scraping multiple accountsIf the given credentials are allowed to assume the specified role in other accounts of your AWS organisation, Resoto
can collect multiple accounts at the same time. To do so provide the account IDs to theresotoworker.aws.accountconfiguration.Scraping the entire organisationInstead of giving a list of account IDs manually you could also specifyresotoworker.aws.scrape_org, which will make Resoto try to get the list of all accounts using theListAccountsAPI.If certain accounts are to be excluded from that list they can be specified using theresotoworker.aws.scrape_exclude_accountconfig option.Miscellaneous OptionsWhen collecting multiple accounts Resoto by default will collect the accounts it finds in the org as well as the one it is currently authenticated as.
If you do not want it to scrape the account that was used to get the list of all org accounts (e.g. your root account) you can specifyresotoworker.aws.dont_scrape_current.If instead of using the current credentials you would like Resoto to assume the specified role (resotoworker.aws.role) even for the current account you can specify the optionsresotoworker.aws.assume_currentandresotoworker.aws.dont_scrape_current. This would make it so that Resoto does not scrape the current account using default credentials but instead assume the specified IAM role even for the current account.LicenseSeeLICENSEfor details.
Package: resoto-plugin-cleanup-aws-alarms
resoto-plugin-cleanup-aws-alarmsAWS Cloudwatch Alarms Cleanup Plugin for ResotoThis plugin marks all orphaned AWS CloudWatch Instance Alarms for cleanup.The following resources are currently being marked for cleanupInstance AlarmsUsageInreshexecute> config edit resoto.workerand find the following sectionplugin_cleanup_aws_alarms:
  # Dictionary of key cloud with list of account IDs for which the plugin should be active as value
  config:
    aws:
      - '1234567'
      - '567890'
  # Enable plugin?
  enabled: false
Package: resoto-plugin-cleanup-aws-loadbalancers
resoto-plugin-cleanup-aws-loadbalancersAWS Loadbalancers Cleanup Plugin for ResotoThis plugin cleans up AWS ALB/ELB load balancers with no instances attached to them.Usageplugin_cleanup_aws_loadbalancers:
  # Enable plugin?
  enabled: false
  # Minimum age of unused load balancers to cleanup
  min_age: '7 days'The default load balancer age is 7 days. Meaning if a load balancer is more than 7 days old and does not have any instances/backends attached it will be flagged for cleanup.Optionally change the age cutoff value using themin_ageoption.Example of valid age units:weeks
days
hours
minutesEach of them can be abbreviated down to one letter. E.g.7d,24h,60m, etc. A space in between the numeric and the unit is optional, meaning7dand7 daysare equivalent.