Saravanan666/pypi-org huggingface dataset:
Package: globalwarmingpotentials
Global Warming PotentialsThis work is released under aCreative Commons CC0 Public Domain Dedication.
Read theLICENSE.Global warming potentials of greenhouse gases.GWP metrics included in this repository100-year-GWP from IPCC reportsSecond Assessment Report (SAR) -SARGWP100Data sourceFourth Assessment Report (AR4) -AR4GWP100Data sourceFifth Assessment Report (AR5) -AR5GWP100Data sourceSixth Assessment Report (AR6) -AR6GWP100Data SourceCSV file20-year-GWP from IPCC reportsSixth Assessment Report (AR6) -AR6GWP20Data SourceCSV file500-year-GWP from IPCC reportsSixth Assessment Report (AR6) -AR6GWP500Data SourceCSV file100-year-GTP from IPCC reportsSixth Assessment Report (AR6) -AR6GTP100Data SourceCSV file100-year-GWP including climate carbon cycle feedbacksFifth Assessment Report (AR5) -AR5CCFGWP100Data sources:Table 8.SM.16Table 8.7(page 714)CSV fileCSV file:globalwarmingpotentials.csvPythonpip install globalwarmingpotentialsExample usage:importglobalwarmingpotentialsasgwpprint(gwp.data["AR5GWP100"]["CH4"])# prints '28'df=gwp.as_frame()# Returns a Pandas DataFrameNodenpm install globalwarmingpotentialsReleasingRunningmake tagand pushing withgit push origin main --tagswill create new releases on PyPI and NPM.
Package: globalz
globalz"I provide zee globalz!" said the library in a thick French accent. "It's like Lua's _G object, but for Python!"WARNING: This repo is in development. It was automatically generated withmkpylib. If you're reading this message, it means that I use this repo for my own purposes right now. It might not do anything at all; the default functionality isprint('TODO').If you really want to try it out, feel free. I recommend reading through the code and commit history to see if it does what you need, orask mefor status updates.Stay tuned!Installpython3 -m pip install -U globalzUsageimportglobalzprint('TODO')LicenseMITContactA library byShawn Presser. If you found it useful, please considerjoining my patreon!My Twitter DMs are always open; you shouldsend me one! It's the best way to reach me, and I'm always happy to hear from you.Twitter:@theshawwnPatreon:https://www.patreon.com/shawwnHN:sillysaurusxWebsite:shawwn.com
Package: globber
GlobberGlobber is a Python library for matching file names against
glob patterns. In contrast to other glob-matching libraries,
it matches arbitrary strings and doesn't require the matched
names to be existing files. In addition, it supports the
globstar**operator to match an arbitrary number of path
components.I have been working with Git repositories, specifically trying
to process files classified as source. Picking the source files
is much easier with globstar expressions, and since old files
might no longer exist on the file system, the matching cannot
be based on actual files. I couldn't find anything that had
support for both, so I wrote this library.PatternsThe syntax of a pattern is a sequence of components, separated
by slashes/. Each component may include the following
special characters:CharacterMeaning?Match any single character (not a path separator)*Match any sequence of characters, possibly empty (except path separators)**Must appear alone inside a component. Match any sequence of components, possibly empty\Match the following character literally. This is intended to escape the special charactersContributingI may occasionally keep working on this library if I have a need
for new functionality, but for the moment it is good enough for
my current needs. If you're using it, and find bugs or want
some new functionality, you're welcome to open an issue. Pull
requests are also appreciated but not necessary to get your
concerns heard.LicenseGlobber is licensed under the Apache Software License, version
2.0. See the LICENSE file for precise license terms and
conditions.
Package: globconf
globconfCreates a global configparser object, regardless of the project and module in need of itA docker container can be used to host protected config files, consumable by the parser objectverify_required_options merges default options with the configparser ones, and optionally ENV
options while validating required options have been set either way.Getting StartedIn a project using globconf:fromglobconfimportconfig,verify_required_options,read_config,fetch_config# when starting the app, the config can be loaded from a specific path:read_config(path='flaf.ini',force=True)# reloads config, even if it already is loaded# or from the globconfd container - caching supported as convenience for offline devs:fetch_config('http://127.0.0.1:5000/cfg.ini','user','pass',cache_timeout=86400,force=True)# if config is not explicitly loaded, config.ini is read from current folder (if there).# verify_required_options checks presence of options, yielding a dict with the merged options# for the sectionDEFAULTS={'required':None,'optional_a':1234}cfg=verify_required_options('Some section',['required','options','for','the','section'])# beyond this, its still basic ConfigParser as you know it..In modules:fromglobconfimportverify_required_optionsclasscls(object):def__init__(self):self.cfg=verify_required_options('service now',['host','user','pwd'])ifself.cfg.get('verify_ssl',True)isFalse:importurllib3urllib3.disable_warnings(InsecureRequestWarning)And your module is happy as long as someone has initialised the needed section in the global config.globconfd via dockerdocker run -it -v ./users.conf:env_users.conf -v ./cfgs:/configs -p 5000:5000 ssch/globconfd:latest -dPrerequisitesconfigparser, diskcache, requestsBuildingBuild:sudo python setup.py sdist bdist_wheel
twine upload dist/*AuthorsSteffen Schumacher-Initial work-steffenschumacherLicenseThis project is licensed under the MIT License - see theLICENSE.mdfile for detailsAcknowledgmentsNahh..
Package: globee
Python Library for integrating with GloBee-------------------------------------This library is a simple way to integrate your application withGloBee for accepting bitcoin & altcoin payments. It exposes three basicfunctions, authenticating with globee, creating invoices,and retrieving invoices. It is not meant as a replacement forthe entire GloBee API. However, the key_utils module containsall of the tools you need to use the BitPay API for otherpurposes.This version requires Python 3 or later; a Python 2 version is available separately.
Package: globee-py2
Python Library for integrating with BitPay-------------------------------------This library is compatible with Python 2.7.8. It is not compatible with Python 3.This library is a simple way to integrate your application withGloBee for accepting bitcoin and altcoin payments. It exposes three basicfunctions, authenticating with globee, creating invoices,and retrieving invoices. It is not meant as a replacement forthe entire GloBee API. However, the key_utils module containsall of the tools you need to use the GloBee API for otherpurposes.© 2015 BitPay, Inc.
Package: globelabs
GlobeLabs API Python Client===========================Installation------------```$ pip install globelabs```Usage-----Sample usage with flask.```from globelabs import Globeapp_id = "BGyKAhGbyoGhRdiA8kTyMXhR9yGEhzoa"app_secret = "8ed742b6c27e38db323ab24e19460a38eb0bf52804fc08f4df897db206b7b690"shortcode = "1027"globe = Globe(app_id=self.app_id,app_secret=self.app_secret,shortcode=self.shortcode)@app.route('/login')def login():return redirect(globe.get_auth_url())@app.route('/redirect_callback')def redirect_callback():r = globe.get_access_token(request.args.get('code'))ac = r['access_token']subscriber_number = r['subscriber_number']return redirect(url_for('.home'))@app.route('/charge')def charge():globe.charge(0, "2158%s0000099" % self.shortcode)```TODO----* Need help with documentation! :D
Package: globestylizer
globestylizerAbout state_abbr()globestylizeris a Python library for use in the Boston Globe. It contains a modulecleanerwith a function calledstate_abbrand has pandas as a dependency.The intended use case for this library is for cleaning a pandas Dataframe that contains state abbreviations that are not adherent to Globe style, and returning a copy of the Dataframe that is in Globe style.InstallationIn your virtual environment, for example pipenv,pipenv install globestylizer. Remember that this is dependent on pandas as well.UsageImport globestylizer'scleanerin your py file or Jupyter notebook:from globestylizer import cleanerYou can call thestate_abbrfunction on any pandas Dataframe and it will parse the entire Dataframe for state abbreviations or full state names. It is case-insensitive so it can handle any variety of capitalizations. Here's example data:State1State2ValueAlaskaAlaska15AKAK654ALAL45.32AlabamaAlabama789TennesseeTennessee15Tenn.Tenn.3TNTN31.2WYOMINGWYOMING789wyomingwyoming455WYomingWYoming11WYWY2Assuming you have a pandas Dataframe defined asdf, you can call it as so:abbreviated_df = cleaner.state_abbr(df)Andabbreviated_dfwill return:State1State2ValueAlaskaAlaska15.0AlaskaAlaska654.0Ala.Ala.45.32Ala.Ala.789.0Tenn.Tenn.15.0Tenn.Tenn.3.0Tenn.Tenn.31.2Wyo.Wyo.789.0Wyo.Wyo.455.0Wyo.Wyo.11.0Wyo.Wyo.2.0You also have the option of parsing only selected columns. If you have state names as part of strings in other columns that you don't want abbreviated, pass in the columns that youdowant abbreviated as a second argument. Assuming you have data as such, and only want to clean the column 'State2':State1State2ValueAlaskaAlaska15AKAK654ALAL45.32AlabamaAlabama789TennesseeTennessee15Tenn.Tenn.3TNTN31.2WYOMINGWYOMING789wyomingwyoming455WYomingWYoming11WYWY2Pass in the column name as the second argument.partially_abbreviated_df = cleaner.state_abbr(df, columns=['State2'])Andpartially_abbreviated_dfwill return:State1State2ValueAlaskaAlaska15.0AKAlaska654.0ALAla.45.32AlabamaAla.789.0TennesseeTenn.15.0Tenn.Tenn.3.0TNTenn.31.2WYOMINGWyo.789.0wyomingWyo.455.0WYomingWyo.11.0WYWyo.2.0
Package: globestylizer-kirkan95
globestylizerAbout state_abbr()globestylizeris a Python library for use in the Boston Globe. It contains a function calledstate_abbrand has one dependency: pandas.The intended use case for this library is for cleaning a pandas Dataframe that contains state abbreviations that are not adherent to Globe style, and returning a copy of the Dataframe that is in Globe style.InstallationIn your virtual environment, for example pipenv,pipenv install globestylizer. Remember that this is dependent on pandas as well.UsageImport globestylizer in your py file or Jupyter notebook:import globestylizerYou can call thestate_abbrfunction on any pandas Dataframe and it will parse the entire Dataframe for state abbreviations or full state names. It is case-insensitive so it can handle any variety of capitalizations. Here's example data:State1State2ValueAlaskaAlaska15AKAK654ALAL45.32AlabamaAlabama789TennesseeTennessee15Tenn.Tenn.3TNTN31.2WYOMINGWYOMING789wyomingwyoming455WYomingWYoming11WYWY2Assuming you have a pandas Dataframe defined asdf, you can call it as so:abbreviated_df = globestylizer.state_abbr(df)Andabbreviated_dfwill return:State1State2ValueAlaskaAlaska15.0AlaskaAlaska654.0Ala.Ala.45.32Ala.Ala.789.0Tenn.Tenn.15.0Tenn.Tenn.3.0Tenn.Tenn.31.2Wyo.Wyo.789.0Wyo.Wyo.455.0Wyo.Wyo.11.0Wyo.Wyo.2.0You also have the option of parsing only selected columns. If you have state names as part of strings in other columns that you don't want abbreviated, pass in the columns that youdowant abbreviated as a second argument. Assuming you have data as such, and only want to clean the column 'State2':State1State2ValueAlaskaAlaska15AKAK654ALAL45.32AlabamaAlabama789TennesseeTennessee15Tenn.Tenn.3TNTN31.2WYOMINGWYOMING789wyomingwyoming455WYomingWYoming11WYWY2Pass in the column name as the second argument.partially_abbreviated_df = globestylizer.state_abbr(df, columns=['State2'])Andpartially_abbreviated_dfwill return:State1State2ValueAlaskaAlaska15.0AKAlaska654.0ALAla.45.32AlabamaAla.789.0TennesseeTenn.15.0Tenn.Tenn.3.0TNTenn.31.2WYOMINGWyo.789.0wyomingWyo.455.0WYomingWyo.11.0WYWyo.2.0
Package: globetrotter
# GlobetrotterApproximate country and language name matching for `pycountry`, making it an even better reference for messy data.## Motivation```>>> import pycountry>>> pycountry.countries.get(name='Vietnam')Traceback (most recent call last):File "<stdin>", line 1, in <module>File "/Users/you/Library/Python/2.7/lib/python/site-packages/pycountry/db.py", line 85, in getreturn self.indices[field][value]KeyError: 'Vietnam'>>>```'Nuff said.## UsageFind a country through the `find_country()` method, giving it an approximate string name. It returns a `Country` object with ISO metadata about the match.```>>> import globetrotterg>>> globetrotter.find_country('Vietnam')<pycountry.db.Country object at 0x1038eed90>>>> globetrotter.find_country('Vietnam').nameu'Viet Nam'```Find a language through the `find_language()` method in a similar way. It returns a `Language` object.```>>> import globetrotter>>> globetrotter.find_language('Spanish')<pycountry.db.Language object at 0x103a444d0>>>> globetrotter.find_language('Spanish').nameu'Spanish; Castilian'```
Package: globexc
Introductionglobexc is a library which makes the Python interpreter write a detailed stack trace if an unhandled exception occurs in a script. This trace is written to a separate file and includes, for each level of the stack, the values of local variables and a few lines of context code. This allows the developer to perform a basic post-mortem analysis of an error without having to recreate the scenario inside a debugger or using verbose logging.The output is similar to the in-browser stack trace given by the Werkzeug or Django web frameworks but available to any Python program even if it’s not a web server.ExampleTo generate a stack trace:importglobexc# install the exception handlerglobexc.init_globexc()# cause an unhandled exceptiona=1/0And the resulting terminal output:CRITICAL Exception <type ‘exceptions.ZeroDivisionError’> (tests/sample.py:15) integer
division or modulo by zero. Trace file written to ‘/home/user/trace.dump’.And for the stack trace seehttps://github.com/mjem/globexc/blob/master/extra/trace.dump.InstallationInstall using setuptools:pythonsetup.pybuildpythonsetup.pyinstallOr from pypi:pipinstallglobexcUsageCallinit_globexc()during program startup to install the global exception handler. The stack trace will then be generated when any unhandled exception occurs. The output works whether or not the Python logging system has been initialised.Environment variablesYou can set the following environment variable to configure the library:GLOBEXCChoose an alternative filename for stack traces.RequirementsNoneCompatibilityThis code has been tested under Linux and using Python 2.7 only.Legalglobexc is copyright 2013 Mike ElsonLicensed under the Apache License, Version 2.0 (the “License”);
you may not use this software except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless 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.ChangeLog0.1.1 (2013-11-11)Fixed pypi index page0.1 (2013-11-11)Initial release
Package: globmatch
Installation|Usage|Testing|Licenseglobmatch- Matching paths against globsglobmatchprovides functions for matching a path against one ore more glob patterns in Python.
This differs from theglobmodule of the standard library, which matches a glob against the
file-tree on your system.globmatchdoes not interact with the filesystem at all, but relies on
generic matching. It also differs from thefnmatchmodule of the standard library in that it
accepts the double star (**) element, which matches zero or more directories. Additionally, the
star element (*) infnmatchwill also match across path separators. Inglobmatchthe
star element matches zero or more characters of the current path element (directory/file name).InstallationInstall globmatch with pip:pipinstallglobmatchor for a development install:pipinstall-egit+https://github.com/vidartf/globmatch#egg=globmatchUsagefromglobmatchimportglob_match# Some paths that match (returns True):glob_match('.git/gitconfig/',['.git'])glob_match('foo/config',['**/config'])glob_match('foo/config/bar',['**/config'])glob_match('.git/gitconfig/',['.git','**/config'])glob_match('foo/config/bar',['.git','**/config'])glob_match('/.git/gitconfig/',['**/.git'])# Some paths that do not match (returns False):glob_match('/.git/gitconfig/',['.git'])# Needs ** to match subdir of root dirglob_match('foo/node_modules',['node_modules'])# Will not match subdir without preceding **TestingInstall the develop install with test requirements:pip install -e globmatch[test]To run Python tests locally, enter on the command line:pytestInstall thecodecov browser extensionto view test coverage in the source browser on github.LicenseAll code is licensed under the terms of the revised BSD license.ResourcesReporting Issues
Package: globsim
GlobsimWelcome to Globsim, a tool for automating the downloading, interpolation and scaling of different reanalyses to produce meteorological time series for user-defined point locations. Full desciption available in this publication:https://gmd.copernicus.org/articles/12/4661/2019/InstallationDetails for installation and usage for Globsim can be found on ourReadTheDocs page.DisclaimerGlobSim is made available for use under the GNU GPL-3 license. We do not guarantee that this software will work with your particular hardware or software. We also make no claim of offering technical support or continued development. However, any issues or bugs should be reported using the github issue tracking tool.
Package: globster
Tools for converting globs to regular expressions.This work is derived fromBazaar(bzrlib) andMikko Ohtamaa. I just created the Python package.UsagefromglobsterimportGlobsterg=Globster(["mydir/","*.pyc"])ifg.match("/path/to/dir/myscript.pyc"):print"it match"ifg.match("/path/to/mydir"):print"it match"License (GPLv2)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 2 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Package: globsters
globsterspython & rust globstersglob + lobster + rs (rs) = globstersfromglobstersimportglobster# singlematcher_1=globster("**/*.py")assertmatcher_1("foo/bar/baz.py")# Trueassertnotmatcher_1("foo/bar/baz.pyc")# False# single case insensitivematcher_2=globster("**/*.py",case_insensitive=True)assertmatcher_2("foo/bar/baz.PY")# True# multi (also works with negation)matcher_3=globster(["*.py","*.txt"])assertmatcher_3("foo/bar/baz.py")# Trueassertmatcher_3("foo/bar/baz.txt")# Trueassertnotmatcher_3("foo/bar/baz.pyc")# False# multi negation (also works with case insensitive)matcher_4=globster(["*.py","!__init__.py"])assertmatcher_4("foo/bar/baz.py")# Trueassertnotmatcher_4("foo/bar/__init__.py")# False
Package: globus-action-provider-tools
This is an experimental toolkit to help developers build Action Providers for
use in Globus Automate including for invocation via Globus Flows.As this is experimental, no support is implied or provided for any sort of use
of this package. It is published for ease of distribution among those planning
to use it for its intended, experimental, purpose.Basic UsageInstall the base toolkit withpip install globus_action_provider_toolsYou can then import the toolkit’s standalone components fromglobus_action_provider_tools. This is useful in instances where you want to
use pieces of the library to perform a function (such as token validation via
the TokenChecker or API schema validation via the ActionStatus or ActionRequest)
and plug into other web frameworks.fromflaskimportFlaskfromglobus_action_provider_toolsimportActionProviderDescriptiondescription=ActionProviderDescription(globus_auth_scope="https://auth.globus.org/scopes/00000000-0000-0000-0000-000000000000/action_all",title="My Action Provider",admin_contact="support@example.org",synchronous=True,input_schema={"$id":"whattimeisitnow.provider.input.schema.json","$schema":"http://json-schema.org/draft-07/schema#","title":"Exmaple Action Provider","type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":False,},api_version="1.0",subtitle="Just an example",description="",keywords=["example","testing"],visible_to=["public"],runnable_by=["all_authenticated_users"],administered_by=["support@example.org"],)To install the Flask helpers as well for use specifically in developing Flask
based Action Providers, install this library usingpip install globus_action_provider_tools[flask]Reporting IssuesIf you’re experiencing a problem using globus_action_provider_tools, or have an
idea for how to improve the toolkit, please open an issue in the repository and
share your feedback.Testing, Development, and ContributingWelcome and thank you for taking the time to contribute!Theglobus_action_provider_toolspackage is developed using poetry so to get
started you’ll need to installpoetry. Once
installed, clone the repository and runmake installto install the package
and its dependencies locally in a virtual environment (typically.venv).And that’s it, you’re ready to dive in and make code changes. Once you’re
satisfied with your changes, be sure to runmake autoformatto run the
project’s autoformatters on your changes andmake testto validate there
are no breaking changes introduced. Both these steps must be run for us to
accept incoming changes. Once you feel your work is ready to be submitted, feel
free to create a PR.LinksFull Documentation:https://action-provider-tools.readthedocs.ioRendered Redoc:https://globus.github.io/action-provider-tools/Source Code:https://github.com/globus/action-provider-toolsRelease History + Changelog:https://github.com/globus/action-provider-tools/releases
Package: globus-automate-client
This SDK provides a CLI and a convenient Pythonic interface to the Globus
Automate suite of services.Basic UsageInstall with these commands:python-mpipinstall--upgradepipsetuptoolswheelpython-mpipinstallglobus-automate-clientYou can then import Globus Automate client classes and other helpers fromglobus_automate_client. For example:fromglobus_automate_clientimportcreate_action_clientac=create_action_client("https://actions.globus.org/hello_world")# Launch an Action and check its resultsresp=ac.run({"echo_string":"Hello from SDK"})assertresp.data["status"]=="SUCCEEDED"print(resp.data)You can also use the CLI interface to interact with Automate services. For
example:globus-automateactionintrospect--action-urlhttps://actions.globus.org/hello_worldTesting, Development, and ContributingGo to theCONTRIBUTINGguide for detail.LinksFull Documentation:https://globus-automate-client.readthedocs.ioSource Code:https://github.com/globus/globus-automate-clientRelease History + Changelog:https://github.com/globus/globus-automate-client/releases
Package: globus-batch-transfer
Globus Batch TransferRequirementsPython >= 3.9PoetryInstall$ pip install globus-batch-transfer
$ pip install --upgrade globus-batch-transfer
$ pip uninstall globus-batch-transferInstall From Source1. $ git clone https://github.com/adnanzaih/globus-batch-transfer.git ; cd globus_batch_transfer/
2. $ poetry installBuild Wheel / Dist From Source1. $ git clone https://github.com/adnanzaih/globus-batch-transfer.git ; cd globus_batch_transfer/
2. $ poetry buildExecution1. $ poetry shell 
1.2 Or activate virtual environment where globus_batch_transfer is installed.
2. $ python -m globus_batch_transfer "/path/to/config.yaml/"