Saravanan666/pypi-org huggingface dataset:
Package: boule
Reference ellipsoids for geodesy and geophysicsDocumentation(latest)•Documentation(main branch)•Contributing•ContactPart of theFatiando a TerraprojectAboutBouleis Python library for representingreference ellipsoids,
calculating their gravity fields, and performing some global coordinate
conversions.
"Boule" is also French for "ball" as well as atraditional shape of bread resembling a squashed ball.Some examples of where Boule can be applied:Storing and manipulating ellipsoid parameters for spherical harmonic analysis.Calculating normal gravity for generating gravity anomalies and disturbances.Modelling in spherical coordinates, which requires geodetic to geocentric
spherical coordinate conversions.Project goalsProvide a representation of ellipsoid parameters and derived quantities,
including units and citations.Convert between geodetic coordinates and geocentric spherical, topocentric,
etc.Calculate the gravity, gravitational, and centrifugal potential (and its
derivatives) of ellipsoids in closed form.Include a range ellipsoids for the Earth and other planetary bodies.Project statusBoule is ready for use but still changing.This means that we sometimes break backwards compatibility as we try to
improve the software based on user experience, new ideas, better design
decisions, etc. Please keep that in mind before you update Boule to a newer
version.We welcome feedback and ideas!This is a great time to bring new ideas on
how we can improve the project.Join the conversationor submitissues on GitHub.Getting involved🗨️Contact us:Find out more about how to reach us atfatiando.org/contact.👩🏾‍💻Contributing to project development:Please read ourContributing Guideto see how you can help and give feedback.🧑🏾‍🤝‍🧑🏼Code of conduct:This project is released with aCode of Conduct.
By participating in this project you agree to abide by its terms.Imposter syndrome disclaimer:We want your help.No, really.There may be a little voice inside your
head that is telling you that you're not ready, that you aren't skilled
enough to contribute. We assure you that the little voice in your head is
wrong. Most importantly,there are many valuable ways to contribute besides
writing code.This disclaimer was adapted from theMetPy project.LicenseThis is free software: you can redistribute it and/or modify it under the terms
of theBSD 3-clause License. A copy of this license is provided inLICENSE.txt.
Package: bounce
# BounceIt’s a keyword search engine, meaning you can configure it to redirectytto Youtube, so a search likeyt weird alwould redirect right
to Youtube’s search.1 minute getting startedInstall it$ pip install bounceStart it:$ bounce-serverQuery it:$ curl "http://127.0.0.1:5000/?q=yt weird al"You can also run it using any WSGI server likeuWSGIusing the includedbouncefile.pyas thewsgi-file.Configurationurl configurationBounce has a built-inconfiguration file with generic
mappingsbut you can also create your own that bounce will read when starting by
setting the environment variableBOUNCE_CONFIGwith a path to your
custom configuration python file:exportBOUNCE_CONFIG=/path/to/bounce_config.pyThe file must importbounce.core.commands:frombounce.coreimportcommandsThecommands.add()method takes a space separated list of commands
and a value:commands.add("foo bar","http://foo.com?q={}")So, if you called bounce with the input:foo blammoIt would redirect to:http://foo.com?q=blammoYou could also call it withbar blammoand get the same thing
because we set up the command keywords asfoo barso eitherfooorbarwould redirect.Notice that the value is apython format
string.callback configurationvalue can also be a callback:defcallback(q):# manipulat q in some way and then return where you would like to goreturn'http://some.url.that.needed.manipulated.q.com={}'.format(q)commands.add("foo bar",callback)That makes it so bounce can do all kinds of crazy things.default configurationBy default, Google is the search engine of choice, so if you don’t start
your request with a command, bounce will redirect to Google search with
your search string. If you would like to change this just passdefault=Trueto one of your custom commands:commands.add("keyword","value",default=True)Viewing configurationthe commandlswill list all the commands bounce supportsTestingTo test locally from the repo:$ python bounce/bin/bounce-serverThat should produce output like this:* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
* Restarting with stat
* Debugger is active!
* Debugger pin code: XXX-XXX-XXXWhich you can then use to test:$ curl "http://127.0.0.1:5000/?q=..."And that’s it.
Package: bounced
bouncedA library to determine info on bounced email messages.Why another one?Withflufl.bounceone only gets a list of email addresses without any further info.
The API ofbounce_emailisn’t Pythonic and inefficient for several use cases, like when you already have email message objects.Referenceshttp://www.serversmtp.com/en/smtp-errorChangelog0.2.0 - 2018-03-31Supportlocalrecipient kind.
[fschulze]Support longer status codes like5.1.10.
[fschulze]0.1.0 - 2018-03-30Initial release.
[fschulze]
Package: bounce_email
Port of Ruby version bounce_email to Python------------------------------------------https://github.com/getoutreach/bounce_emailSetup workinv env-----------------mkvirtualenv bounce_emailpip install -r requirements.txtRun the tests-------------nosetests --verboseUsage-----from bounce_email import bounce_emailmsg = """ Fill with raw email text"""# Do something with bounce infobounce = bounce_email.BounceEmail(msg)bounce.is_bounced  # True/Falsebounce.code  # e.g. "5.0.0"bounce.reason  # e.g. "Description of the bounce code"bounce.bounce_type  # "Permanent Failure", "Persistent Transient Failure", "Success" -- BounceEmail::TYPE_HARD_FAIL, TYPE_SOFT_FAIL, TYPE_SUCCESS
Package: bouncer-client-sdk
bouncer-client-sdkSDK Installationpipinstallbouncer-client-sdkSDK Example Usageimportsdkfromsdk.modelsimportoperations,shareds=sdk.SDK()req=operations.MutationProductsCreateRequest(request=operations.MutationProductsCreateRequestBody(contact_page_url="unde",contact_sales_email="deserunt",contact_sales_url="porro",contact_support_email="nulla",contact_support_url="id",home_page_url="vero",id="perspiciatis",is_setup_complete=True,on_access_denied_url="nihil",on_access_granted_url="fuga",on_no_seat_available_url="facilis",on_no_subscriptions_found_url="eum",on_subscription_canceled_url="iusto",on_subscription_not_found_url="ullam",on_subscription_not_ready_url="saepe",on_subscription_suspended_url="inventore",privacy_notice_page_url="sapiente",product_name="enim",publisher_name="eum",seating_config=operations.MutationProductsCreateRequestBodySeatingConfig(default_low_seat_warning_level_percent=4776.65,default_seat_expiry_in_days=7917.25,limited_overflow_seating_enabled=False,low_seat_warning_level_pct=5288.95,owner_id="deleniti",seat_reservation_expiry_in_days=5680.45,seating_strategy_name="first_come_first_served",),),)res=s.mutation_products_create(req)ifres.mutation_products_create_200_application_json_objectisnotNone:# handle responseSDK Available OperationsSDK SDKmutation_products_createmutation_products_updatemutation_seats_redeem_seatmutation_seats_release_seatmutation_seats_request_seatmutation_seats_reserve_seatmutation_seats_updateu_occupantmutation_subscriptions_create_subscriptionmutation_subscriptions_update_subscriptionquery_products_allquery_products_by_idquery_seats_by_idquery_seats_by_subscriptionquery_seats_user_seatquery_subscriptions_allquery_subscriptions_by_idSDK Generated bySpeakeasy
Package: bouncy
You play Bouncy the Hungry Rabbit. You’re in a garden with yummy veggies and a
farmer who’s not keen on you eating them. You can hide (and move around) under
the ground.Bouncy was written so it could be enjoyed by my daughter, who is about to turn
3, and by older gamers. Hence it’s not a violent game and “easy” is really,
really easy, and “hard” is challenging.This game was developed duringPyWeek.
Package: bound
boundpulls data fromThe Big Blocklist
Collectionand generates anunboundconfiguration file
that refuses lookup of the selected domains.This is useful for blocking ads and malware, in much the same way aspi-hole. You might prefer this method over
pi-hole if:you’re already using unboundyou don’t love dnsmasq (which pi-hole is based on)you don’t think a DNS resolver should require a web serveryou distrust thousands of lines of bash to make major changes to your
systemIf the above don’t apply to you, or you’re looking for an opinionated,
ad-blocking resolver with a pretty user interface and automated
installer,pi-holeis probably what you want.Requirementsa gnu/linux or *bsd operating systema working unbound installationpython3.6+ (for debian-like systems:sudoapt-getinstall python3)python3requestslibrary (for
debian-like systems:sudoapt-getinstallpython3-requests)Installationpython setup.py installUsageboundis intended to be used with blocklists fromThe Big Blocklist
Collection.Run without any options,boundwill:download the latest “ticked” list from the Big Blocklist Collectiondownload all of the blocklists listed in the “ticked” listparse, deduplicate, and assemble a list of domains from the retrieved
blocklistsremove any safelisted domains from the listwrite/etc/unbound/unbound.conf.d/blocklist.confto configure
unbound for blocking the listed domainscheck the unbound configuration, and exit in case of any errorsrestart unboundTo accomplish the above, you will probably need to runboundas the
root user.There are options that support running as a non-root user, as well as
specifying the blocklist URL, an optional safelist URL, and local
blocklist and safelist files.For a description of all the options, runbound-h.Supported File Formatsboundsupports blocklists and safelists in the following formats:one domain per lineadvanbusiness.com
aoldaily.com
aolon1ine.com
applesoftupdate.com
arrowservice.netone domain per line, with inline commentsquantummetric.com # Cydia/Bigboss
cydia.saurik.com.cdngc.net # Cydia/Bigboss
production-ultimate-assets.ratecity.com.au # NewsCorp
saber.srvcs.tumblr.com # Tumblr
fd-fp3.wg1.b.yahoo.com # Tumblrhosts file format127.0.0.1  0koryu0.easter.ne.jp
127.0.0.1  109-204-26-16.netconnexion.managedbroadband.co.uk
127.0.0.1  1866809.securefastserver.com
127.0.0.1  2amsports.com
127.0.0.1  4dexports.comsingle-digit hosts file format0 1app.blob.core.windows.net
0 2912a.v.fwmrm.net
0 29773.v.fwmrm.net
0 5be16.v.fwmrm.net
0 888casino.com
Package: boundary
TrueSight Pulse CLI provides command line access to TrueSight Pulse REST APIs.Visithttp://boundary.github.io/boundary-api-cli/for installation and
usage instructions.© Copyright 2005-2015 BMC Software, Inc. Use of this software signifies your acceptance of BMC’s Terms of Use, Privacy Policy and Cookie Notice. BMC, BMC Software, the BMC logos, and other BMC marks are trademarks or registered trademarks of BMC Software, Inc. in the U.S. and/or certain other countries.
Package: boundaryscheme
This is the architecture for the package "boundaryscheme" :https://pypi.org/project/boundaryscheme/boundaryschemePackage Python to use numerical scheme with boundaries which is described in the PhD manuscriptP. Le Barbenchon, Étude théorique et numérique de la stabilité GKS pour des schémas d'ordre élevé en présence de bords, PhD, 2023.Package documentationhttps://plebarbenchon.github.io/boundaryschemeEasy installation for the PyPI versionpipinstallboundaryschemeInstallation for the GitHub versiongitclonehttps://github.com/PLeBarbenchon/boundaryscheme.gitcdboundaryscheme
pip3install-rrequirements.txt
pip3install-e.
python3examples/draw_detKLcurve.pyExampleimportmatplotlib.pyplotaspltfromboundaryscheme.schemesimportBeamWarmingfromboundaryscheme.boundariesimportSILWimportboundaryscheme.pyplotasbspltbsplt.detKLcurve(BeamWarming,SILW(2,3),lambdacursor=True)plt.show()Creation of a schemeTo compute the scheme $U_{j}^{n+1} = \dfrac{1}{3}U_{j-1}^n + U_j^n -\dfrac{1}{6} U_{j+1}^n - \dfrac{1}{6}U_{j+2}^n$ with a boundary $B$, writeS=Scheme([1/3,1,-1/6,-1/6],1,B)To compute the scheme depending on a parameter $\lambda$, create a Python class using the following formulation:className(Scheme):"""This is a class to represent ...:param lamb: The Courant number, i.e  a.dt/dx where "a" is the velocity, "dt" the time discretization and "dx" the space discretization:type lamb: float:param boundary: Boundary condition, defaults to Dirichlet():type boundary: class:`Boundary`, optional:param sigma: Gap between the mesh and the boundary condition, defaults to 0:type sigma: float, optional"""def__init__(self,lamb,boundary=Dirichlet(),sigma=0,**kwargs):"""Constructor method"""self.sigma=sigmaself.lamb=lambself.inter=#write the list of the coefficients of the schemeself.center=#write the index of the center of the schemeself.CFL=#give the CFL conditionsuper().__init__(inter=self.inter,center=self.center,boundary=boundary,sigma=sigma,**kwargs)defshortname(self):"""Name method"""return"Name"For example, to compute the scheme
$U_{j}^{n+1} = \dfrac{\lambda}{3}U_{j-1}^n + \lambda^2 U_j^n -\dfrac{1}{6} U_{j+1}^n - \dfrac{\lambda}{6}U_{j+2}^n$ with a boundary $B$, writeclassName(Scheme):def__init__(self,lamb,boundary=Dirichlet(),sigma=0,**kwargs):self.sigma=sigmaself.lamb=lambself.inter=[lamb/3,lamb**2,-1/6,-lamb/6]self.center=1self.CFL=#give the CFL conditionsuper().__init__(inter=self.inter,center=self.center,boundary=boundary,sigma=sigma,**kwargs)defshortname(self):"""Name method"""return"Name"CitingThe code is citable via Zenodo. Please cite as:P. Le Barbenchon, boundaryscheme: package Python for numerical schemes with boundaries. 2023.
Package: boundbox
boundboxThe package is available in pip,https://pypi.org/project/boundbox/for installation : pip install boundboxboundbox is a lightweight python library that can help developers with bounding boxes while using an ocr or other image
processing projects.The library provides support for converting the results of OCR's like pytesseract or contours directly into
boundbox objects. Various operations that can be done on the bounding boxes are included in the package and
developers can use them with easeAnyone interested to improve it is welcome to make contributions
Package: boundbox2d
Bound Box 2DLicenseDeveloped by: E. S. Pereira.
e-mail:pereira.somoza@gmail.comCopyright [2019] [E. S. Pereira]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 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.
Package: boundedcontours
Gaussian smoothing for 2D arrays where some condition must be maintained e.g. x>y. In the default setting this is achieved by reflection about the boundary before the kernel convolution. See the examples directory.To install and be able to run the examples:python-mpipinstall'boundedcontours[examples]'Or from source:gitclonehttps://github.com/millsjc/boundedcontourscdboundedcontours
python-mpipinstall'.[examples]'
Package: bounded-executor
If we use concurrent.futures’ ThreadPoolExecutor, ProcessPoolExecutor, easy to run into OOM issue since
their waiting task queue size is not bounded. There is no limit how many tasked submitted.BoundedThreadPoolExecutorfrombounded_executorimportBoundedThreadPoolExecutordefjob(i):print(i)withBoundedThreadPoolExecutor(max_workers=10,max_waiting_tasks=50)aspool:foriinrange(1000):pool.submit(job,i)BoundedProcessPoolExecutorfrombounded_executorimportBoundedProcessPoolExecutordefjob(i):print(i)withBoundedProcessPoolExecutor(max_workers=10,max_waiting_tasks=50)aspool:foriinrange(1000):pool.submit(job,i)
Package: bounded-iterator
Intromultiprocessing.pool.ThreadPoolandmultiprocessing.Poolhave the wonderfulimapandimap_unorderedmethods which allow to consume an iterable
incrementally and will yield results as they become available.This is wonderful as it allows to process inputs or results larger than available
memory.It has an important flaw which is that it does not limit the number of results
that are not consumed. This causes it to use memory without bound.This package implements a wrapper over an iterable which will limit the number
of results generated until they are acknowledged. It allows a number of
messages to be processed concurrently but no more than that.Usageit=itertools.count()# The input iterable.it=BoundedIterator(10,it)# Allows concurrent processing of up to 10 values.results=Pool().imap(str,it)# Will begin consuming `it` and producing results.time.sleep(5)# No matter what else we do, no more than 10 results will be available.forresinresults:# Consume normally.print(res)it.processed()# Acknowledge a value was processed so that a new one can be generated.DevelopmentSetup pre-commit hooks and you are ready to go.pre-commitinstall--install-hooks
Package: bounded-pool
bounded_poolSimplistic and universal bounded pool executor that allows to process N tasks
as the same time while limiting size of the queue. Tasks can be functions or
coroutines. Under the hoodbounded_pooluses threads or processes, depending
on used class. Refer totests/test_basic.pyfor details.Tasks will only be submited when there are available workers (specified bymax_workers). You can specifymax_queue_sizeto allow submiting more
tasks than amount of available workers (so workers won't have to wait for
task creation). Refer totests/test_queue.pyfor details.Exceptions inside of the tasks craeted with executors are ignored. Refer
totests/test_exceptions.pyfor details.Example / Showcaseimporttimefrombounded_poolimportBoundedThreadPoolExecutordeftest_example():futures=[]withBoundedThreadPoolExecutor()aspool:for_inrange(64):future=pool.submit(time.sleep,1)futures.append(future)assertfuturesforfutureinfutures:assertfuture.done()assertfuture.result()isNoneLicense
Package: bounded-pool-executor
Bounded Process&Thread Pool ExecutorBoundedSemaphore forProcessPoolExecutor&ThreadPoolExecutorfromconcurrent.futuresInstallationpipinstallbounded-pool-executorWhat is the main problem?If you use the standard module "concurrent.futures" and want to simultaneously process several million data, then a queue of workers will take up all the free memory.If the script is run on a weak VPS, this will lead to amemory leak.BoundedProcessPoolExecutor VS ProcessPoolExecutorBoundedProcessPoolExecutorBoundedProcessPoolExecutorwill put a new worker in queue only when another worker has finished his work.frombounded_pool_executorimportBoundedProcessPoolExecutorfromtimeimportsleepfromrandomimportrandintdefdo_job(num):sleep_sec=randint(1,10)print('value:%d, sleep:%dsec.'%(num,sleep_sec))sleep(sleep_sec)withBoundedProcessPoolExecutor(max_workers=5)asworker:fornuminrange(10000):print('#%dWorker initialization'%num)worker.submit(do_job,num)Result:Classic concurrent.futures.ProcessPoolExecutorProcessPoolExecutorinserts all workers into the queue and expects tasks to be performed as the new worker is released, depending on the value ofmax_workers.importconcurrent.futuresfromtimeimportsleepfromrandomimportrandintdefdo_job(num):sleep_sec=randint(1,3)print('value:%d, sleep:%dsec.'%(num,sleep_sec))sleep(sleep_sec)withconcurrent.futures.ProcessPoolExecutor(max_workers=5)asworker:fornuminrange(100000):print('#%dWorker initialization'%num)worker.submit(do_job,num)Result:
Package: bounded-subprocess
bounded_subprocessThebounded-subprocessmodule runs a subprocess with several bounds:The subprocess runs in a Linux session, so the process and all its children
can be killed;The subprocess runs with a given timeout; andThe parent captures a bounded amount of output from the subprocess and
discards the rest.Note that the subprocess is not isolated: it can use the network, the filesystem,
or create new sessions.Installationpython3 -m pip install bounded-subprocessLicensebounded-subprocessis distributed under the terms of theMITlicense.
Package: bounden
BoundenBoundendescribes points and regions withinn-dimensional space.PointsThePointclass describes a point inn-dimensional space.The class's generic type describes the coordinate type of each dimension, and must be specified as a tuple:fromboundenimportPointin_line=Point[tuple[int]]((0,))in_rect=Point[tuple[int,int]]((0,0))in_cube=Point[tuple[int,int,int]]((0,0,0))The position is read from thepositionproperty:fromboundenimportPointpoint=Point[tuple[int,int,int]]((1,2,3))print(point.position)# (1, 2, 3)InstallationBoundenrequires Python 3.10 or later and can be installed fromPyPI.pip install boundenSupportPlease raise bugs, feature requests and ask questions atcariad/bounden/issues.The ProjectBoundenis © 2022 Cariad Eccleston and released under theMIT Licenseatcariad/nvalues.The AuthorHello! 👋 I'mCariad Ecclestonand I'm a freelance backend and infrastructure engineer in the United Kingdom. You can find me atcariad.earth,github/cariad,linkedin/cariadand on Mastodon at@cariad@tech.lgbt.
Package: boundlessgeo-schema
This package will convert the packaged actions.json to a dictionary.
By convention, Actions can be Queries or Commands in aCQRSarchitecture.Installationpip install boundlessgeo-schemaUsage>>> import boundlessgeo_schema as bs
>>> schema = bs.get_schema()
>>> import_command = schema['SPATIALIO_IMPORT']
>>> print(import_command)
'v1/SPATIALIO_IMPORT'
>>> events = bs.get_events()
>>> event = events['NO_LAYERS_FOUND']
>>> print(event)
'v1/NO_LAYERS_FOUND'
Package: bourbaki
b∅∪ℝb∀kiPython on a firm foundationFromwikipedia:Nicolas Bourbaki (French pronunciation: ​[nikɔla buʁbaki]) is the collective pseudonym of a group of (mainly French) mathematicians.
Their aim is to reformulate mathematics on an extremely abstract and formal but self-contained basis in a series of books beginning in 1935.
With the goal of grounding all of mathematics on set theory, the group strives for rigour and generality.
Their work led to the discovery of several concepts and terminologies still used, and influenced modern branches of mathematics.What Nicolas Bourbaki did for mathematics, we aim to do for Python programming.Types, introspection, and automatic code generation figure prominently in this program.Reusability is held sacrosanct because "There should be one -- and preferably only one -- obvious way to do it."
Like a useful theorem, a useful computational abstraction should be invokable at will.
It need not be derived more than once.Submodulesbourbaki.regexprovides an interface for constructing arbitrarily complex
regular expressions using standard Python syntax.bourbaki.applicationderives complete command line interfaces from standard python function and class definitions.bourbaki.introspectioncontains utilities for introspecting runtime python objects of various types, and is a major foundational package for many others in the bourbaki namespace.HomepageAll of the bourbaki submodules are maintainedhereIn the spirit of the original Bourbaki group, contributions are welcome.
Package: bourse
BourseRust market-simulator with a Python APIPythonFull documentation can be foundhere.Getting StartedBourse can be installed via pippip install bourseExamplesSeeherefor simulation examples andthe docsfor an annotated example.RustGetting StartedThe library consists of two core crates:bourse-booka library implementing a limit order
book. Full documentation can be foundhere.bourse-dea discrete-event market simulation library.
Full documentation can be foundhereBoth can be installed using cargocargo add bourse-book bourse-deExamplesExamples can be found in the relevant cratesorder bookandsimulation.Examples can be run via cargo usingcargo run --example ...