Saravanan666/pypi-org huggingface dataset:
Package: beaker-mongo
MongoDB backend for Beaker’s caching / session system.ConfigurationTo set this up in your own project so that beaker can find it, it must
define a setuptools entry point in your setup.py file.  If you install
from the egg distribution, beaker-mongodb setup.py SHOULD create a
beaker.backend entry point.  If you need to tweak it/see how it’s done
or it just doesn’t work and you need to define your own,
mine looks like this:>>> entry_points="""
... [beaker.backends]
... mongodb = beaker.ext.mongodb:MongoDBNamespaceManager
... """,With this defined, beaker should automatically find the entry point at startup
(Beaker 1.4 and higher support custom entry points) and load it as an optional
backend called ‘mongodb’.There are more configuration options and details in the Beaker configuration docs[1].[1]Beaker’s configuration documentation -http://beaker.groovie.org/configuration.htmI have a few cache regions in one of my applications, some of which are memcache and some are on mongodb.  The region config looks like this:>>> # new style cache settings
... beaker.cache.regions = comic_archives, navigation
... beaker.cache.comic_archives.type = libmemcached
... beaker.cache.comic_archives.url = 127.0.0.1:11211
... beaker.cache.comic_archives.expire = 604800
... beaker.cache.navigation.type = mongodb
... beaker.cache.navigation.url = mongodb://localhost:27017/beaker.navigation
... beaker.cache.navigation.expire = 86400The Beaker docs[1] contain detailed information on configuring regions.  The
item we’re interested in here is thebeaker.cache.navigationkeys.  Each
beaker cache definition needs atypefield, which defines which backend to
use.  Specifying mongodb will (if the module is properly installed) tell
Beaker to cache via mongodb.  Note that if Beaker cannot load the extension,
it will tell you that mongodb is an invalid backend.Expiration is standard beaker syntax, although not supported at the moment in
this backend.Finally, you need to define a URL to connect to MongoDB.  This follows the standardized
MongoDB URI Format[2]_.If you want to use MongoDB’s optional authentication support, that is also supported.  Simply define your URL as such:>>> beaker.cache.navigation.url = mongodb://user@password@localhost:27017/beaker.navigation[2]MongoDB URI Format:http://www.mongodb.org/display/DOCS/Connections
Package: beaker-py
beaker-pyA lightweight, standalone, pure Python client forBeakerFeatures🪶LightweightMinimal dependencies.Only pure-Python dependencies.Communicates directly with the Beaker server via HTTP requests (Beaker CLI not required).💪RobustAutomatically retries failed HTTP requests with exponential backoff.Runtime data validation.High test coverage.📓Exhaustively-typed and documentedThorough data model for all input / output types.Every expected HTTP error from the Beaker server is translated into a specific exception type.Quick linksDocumentationPyPI packageContributingLicenseSee also 👇Beaker (CLI)Beaker GantryBeaker-relevantGitHub Actionssetup-beakerbeaker-commandbeaker-runInstallingInstalling withpipbeaker-pyis availableon PyPI. Just runpipinstallbeaker-pyInstalling from sourceTo installbeaker-pyfrom source, first clonethe repository:gitclonehttps://github.com/allenai/beaker-py.gitcdbeaker-pyThen runpipinstall-e.Quick startIf you've already configured theBeaker command-line client,beaker-pywill
find and use the existing configuration file (usually located at$HOME/.beaker/config.yml).
Otherwise just set the environment variableBEAKER_TOKENto your Beakeruser token.Either way, you should then instantiate the Beaker client with.from_env():frombeakerimportBeakerbeaker=Beaker.from_env(default_workspace="my_org/my_workspace")The API ofbeaker-pyis meant to mirror - as closely as possible - the API of the Beaker CLI.
For example, when you do this with the CLI:beakerdatasetcreate--namefoo.Thebeaker-pyequivalent would be:beaker.dataset.create("foo",".")See theAPI Docsto learn about the Beaker client's methods.
Package: beaker-pyteal
BeakerBeaker is a smart contract development framework forPyTeal.Hello, Beakerfrompytealimport*frombeakerimport*hello_app=Application("HelloBeaker")@hello_app.externaldefhello(name:abi.String,*,output:abi.String)->Expr:# Set output to the result of `Hello, `+namereturnoutput.set(Concat(Bytes("Hello, "),name.get()))# Create an Application clientapp_client=client.ApplicationClient(# Get sandbox algod clientclient=sandbox.get_algod_client(),# Pass instance of app to clientapp=hello_app,# Get acct from sandbox and pass the signersigner=sandbox.get_accounts().pop().signer,)# Deploy the app on-chainapp_id,app_addr,txid=app_client.create()print(f"""Deployed app in txid{txid}App ID:{app_id}Address:{app_addr}""")# Call the `hello` methodresult=app_client.call(hello,name="Beaker")print(result.return_value)# "Hello, Beaker"InstallBeaker requires Python >= 3.10You can install from pip:pip install beaker-pytealOr from github directly (no promises on stability):pip install git+https://github.com/algorand-devrel/beakerDev EnvironmentRequires a local network running to compile and test contracts.InstallAlgoKitand start it$algokitlocalnetstart
$algokitlocalnetstatusFront EndSeeBeaker TSto generate a front end client for a Beaker App.TestingYou can run tests from the root of the project usingpytestUseExamplesDocsPlease report bugs and get any contracts auditedWe recommend that any production smart contracts be audited by a professional before deployment. Beaker has been thoroughly tested, but we cannot guarantee that it is entirely free of bugs.
Package: beaker-session-jwt
A new signed-cookie implementation forBeaker SessionsFeaturesso much safer than default Pickle serializationserialize with BSON and compress, so more datatypes supported than JSON (optional)multiple keys, so you can rotate themstronger hash algorithm (SHA256)backwards compatible reads/writes with original pickle-based beaker session cookiesJWT for signing (although not much else of JWT is implemented)Installpip install 'beaker-session-jwt'UsageSee beaker docs for general implementation.  Specify using this class:from beaker_session_jwt import JWTCookieSession

app = SessionMiddleware(app, config, session_class=JWTCookieSession)Additional config optionsSee Beaker docs for main config options, many of which apply to this class too.jwt_secret_keysrequired. One or more comma-separated keysgenerate a key withpython -c 'import secrets; print(secrets.token_hex());'multiple signing keys are supported, so you can rotate them.  The first one in the list will be used for writing, the rest will be permitted for verifying.bson_compress_jwt_payloaddefault Trueserializing with BSON and compressing with zlib, to allow for types like datetime, bytes, etc to be stored which JSON cannot store.  This is stored all in a single JWT field, so JWT is hardly being used, just for signatures reallyread_original_formatdefault Falseset to true to read original beaker signed cookies.  Allows for backward compatibility and transition periodsafter a transition period, make sure to set this back to Falseoriginal_format_validate_keyrequired ifread_original_formatoriginal_format_data_serializeroriginal_format_remove_keysoptional comma-separated listif your old sessions have values that pickle supported, but don't work any more, list the session keys here.  They will be removed but the rest of the session will be preserved.write_original_formatdefault Falseset to true if you have many servers/processes and need to roll this out gradually.  Then later set to False when all processes are ready.Non-Featuresno encrypted cookies (could be possible with JWT though)JWT payload/claim fields (iss,sub,exp, etc) are not used or verified. Instead, this uses the fields that a beaker CookieSession has, for maximum backwards compatibility and simplicity.pymongo/bson is always required even withbson_compress_jwt_payload=FalseLicenseApache License
Package: beam-analysis
beam-analysisPerform engineering analysis on beams with diagrams for shear, moments, angle, and deflectionUsagepipinstallbeam_analysisgitclonehttps://github.com/XDwightsBeetsX/beam-analysisCheck out some demoshere!If you run into usage problems, double check therequirements.txtMechanical RequirementsCurrently reactions are not solved for... :caution:All loads and reactions must be inputtedBoundary conditions currently required:one angleANDone deflection parameterORtwo deflection parametersBeam weight is not accounted for by defaultrepresent it with a distributed loadContinuous development usingtwineThis project is maintained on PYPI via releases through twine...pythonsetup.pysdistbdist_wheel
twineupload-rtestpypidist/*-u$username-p$passwordtwineupload-rpypidist/*-u$username-p$password
Package: beam-bc365
AboutA collection of transforms for Microsoft Business Central 265 for theApache beampython SDK.InstallationUsing pippipinstallbeam-bc3675From sourcegitclonegit@github.com:Spazzy757/beam-bc365.gitcdbeam-bc365
pipinstall.UsageThe intended use of this libary is to Pull Data from Microsoft Central Business CentralWeb Servicesimportapache_beamasbeamfromapache_beam.options.pipeline_optionsimportPipelineOptionsfrombeam_bc365.ioimportbc_serviceservice_config=bc_service.ServiceConfiguration(username='foo',service_key='api-key',companies=['Cranos'],service='G_L_ENTRY',instance='Sandbox',instance_id="2E0B815D-A1AC-491B-BD09-0876DACC2A12")withbeam.Pipeline(options=PipelineOptions())asp:records=p|"Reading records from service">>bc_service.ReadFromService(service_config=service_config,)records|'Writing to stdout'>>beam.Map(print)Local DevelopmentInstall development dependenciespipinstall-e.[dev]Run testsnosetestsLintingplease make sure to lint your code before contributingpylint.BumpversionNOTE:This should be done by CI/CD, this is only for exceptional casesThis library uses semantic versioningbump2version--new-version$NEW_VERSIONsetup.py
Package: beamer
beameris a simple command line tool for toggling and positioning a secondary monitor or projector on Linux.It is a thin wrapper forxrandrto spare you typing out common setups in its verbose syntax. Consequently, it requiresxrandrto be installed on your system.CommandsCommands assume the first output listed byxrandrto be the main output (e.g. a laptops monitor).(See alsobeamer -h)beamer infoPrint a short, formatted list of avaliable outputs and modesbeamer clonemirror the main output to a secondary outputbeamer left|right|above|belowextend the screen to a secondary output next to the main outputbeamer offonly use main outputbeamer onlyonly use secondary outputbeamer queryshow output ofxrandr --queryInstallationRunpip install beamer– or –copy thebeamer.pyfile from this repository anywhere on your computer
and run it viapython3 /path/to/beamer.py.
Package: beamer-bridge
Beamer BridgeTransfer ERC20 assets directly between EVM compatible rollups - with a world class user experienceBeamer is a protocol to enable users to move tokens from one rollup to another.
The user requests a transfer by providing tokens on the source rollup.
Liquidity providers then fill the request and directly send tokens to the user
on the target rollup.Documentation:https://docs.beamerbridge.comTestnet frontend:https://testnet.beamerbridge.comRunning an agent from sourcePrerequisites: Python 3.9.x and PoetryClone this repository and enter the virtual environment:poetry shellInstall the necessary dependencies:poetry installFinally, still within the virtual environment, run:beamer-agent --keystore-file <keyfile> \
                 --password <keyfile-password> \
                 --l1-rpc-url <l1-rpc-url> \
                 --l2a-rpc-url <source-l2-rpc-url> \
                 --l2b-rpc-url <target-l2-rpc-url> \
                 --deployment-dir <contract-deployment-dir> \
                 --token-match-file <token-match-file>For more comprehensive documentation go toBeamer documenation.
Package: beam-extended
beam-extended packageProvide extensions to existing SDKs (mainly Python)It currently contains:mongoDB IO ConnectorInstallationTo install the package, please use thepipinstallation as follows:pip install beam-extendedNote:currently, due to Apache Beam constraints, beam-extended is only available forPython 3.6.Example UsageHere is a short example of using the package.from beam_extended.io.mongodbio import ReadFromMongo, WriteToMongo
...
with beam.Pipeline(options=options) as pipeline:
    ( p | 'read' >> ReadFromMongo('myUrl1', 'myDb1', 'myColl1', query={}, projection=['_id'])
        | 'transform' >> beam.Map(transform)
        | 'save' >> WriteToMongo('myUrl2', 'myDb2', 'myColl2'))PublishingRun thepypi.shscript.CreditsBased on:https://gist.github.com/dlebech/e9d6ba266014db8783dbbeb362593020by David Volquartz Lebechandhttps://gist.github.com/sandboxws/08b9c5e373b94056733f8a662d9a2fa2by Ahmed El.Hussaini
Package: beamformer-gpu
Souden MVDR beamformer in CuPyThis package is modified from the core parts ofpb_bssand modifies it to useCuPyfor accelerated GPU-based inference.At the moment, it is meant to be used with theGSStoolkit,
but it can also be used as a general beamformer.Installation>pipinstallcupy-cuda102# modify according to your CUDA version (https://docs.cupy.dev/en/stable/install.html#installing-cupy)>pipinstallbeamformer-gpuUsagefrombeamformerimportbeamform_mvdrimportcupyascpX=cp.random.rand(4,1000,513)# D, T, FX_mask=cp.random.rand(1000,513)# T, FN_mask=cp.random.rand(1000,513)# T, FX_hat=beamform_mvdr(X,X_mask,N_mask,ban=True)
Package: beam_integrals
AboutConsole app and Python API for determining beam integrals of all 6 supported
beam types, as described in[Milasinovic1997]. This is a reengineered, advanced
version of ourprevious work.This work is a part of the investigation within the research projects:[ON174027]and[TR36017], supported by the Ministry for Science and
Technology, Republic of Serbia. This support is gratefully acknowledged.Continuous integrationis powered byJenkins.References[Milasinovic1997]Milašinović, D.D. “The Finite Strip Method in Computational Mechanics”.
Faculties of Civil Engineering: University of Novi Sad, Technical University
of Budapest and University of Belgrade: Subotica, Budapest, Belgrade. (1997)[ON174027]“Computational Mechanics in Structural Engineering”[TR36017]“Utilization of by-products and recycled waste materials in concrete
composites in the scope of sustainable construction development in Serbia:
investigation and environmental assessment of possible applications”InstallationTo install beam_integrals run:$ pip install beam_integralsIt’s strongly recommended to installgmpy. Without it code will still run
correctly, but much slower at high precision.Console app usageQuick start:$ beam_integrals <subcomand> ...Show help:$ beam_integrals helpPython API usageQuick start:>>> from beam_integrals.beam_types import FreeFreeBeam
>>> from beam_integrals.integrals import I1, integrate
>>> integrate(I1(), FreeFreeBeam(), a=1., m=1, n=1, error=True)ContributeIf you find any bugs, or wish to propose new featuresplease let us know.If you’d like to contribute, simply forkthe repository, commit your changes
and send a pull request. Make sure you add yourself toAUTHORS.New in beam_integrals 1.1.0Feature additionsAdded a heuristic to help guessing the scale function/factor, as per the
section 3.4 of my PhD thesis.
Package: beamline
Accelerator online model and lattice visualization package developed by Python.Developing language:Python 2.7 and 3.xAs of release 2.0.0, Python 3.x is supported, 1.x.y supports Python 2.7.Main Features:Parsing elegant (electron accelerator tracking code) lattice file (.lte) to be
python dict or json string for further operations.Modeling accelerator magnetic elements, such as dipole, quadrupole, drift, etc. to be python
objects, from EPICS control environment to OOP level.Support unit conversion between EPICS PV raw value and the physical real value of elements.Modeling lattice beamline from modeled elements, constructing Lattice instance,
dumping .lte file for code tracking.Feeding defined elements with new configuration, interfacing with EPICS environment, to form
the close-loop online system.Visualizing the lattice layout by predefined elements’ style.Friendly native-look GUI application to facilitate these functionalities.
Package: beam-mysql-connector
Beam - MySQL ConnectorBeam - MySQL Connector is an io connector ofApache Beamto access MySQL databases.Installationpipinstallbeam-mysql-connectorGetting StartedRead From MySQLfrombeam_mysql.connectorimportsplittersfrombeam_mysql.connector.ioimportReadFromMySQLread_from_mysql=ReadFromMySQL(query="SELECT * FROM test_db.tests;",host="localhost",database="test_db",user="test",password="test",port=3306,splitter=splitters.NoSplitter()# you can select how to split query for performance)Write To MySQLfrombeam_mysql.connector.ioimportWriteToMySQLwrite_to_mysql=WriteToMySQL(host="localhost",database="test_db",table="tests",user="test",password="test",port=3306,batch_size=1000,)LicenseMIT License. Please refer to theLICENSE.txt, for further details.
Package: beam-postgres
beam-postgresLight IO transforms for Postgres read/write in Apache Beam pipelines.GoalThe project aims to provide highly performant and customizable transforms and is
not intended to support many different SQL database engines.FeaturesReadAllFromPostgres,ReadFromPostgres`` andWriteToPostgres` transformsRecords can be mapped to tuples, dictionaries or dataclassesReads and writes are in configurable batchesUsagePrinting data from the database table:importapache_beamasbeamfrompsycopg.rowsimportdict_rowfrombeam_postgres.ioimportReadAllFromPostgreswithbeam.Pipeline()asp:data=p|"Reading example records from database">>ReadAllFromPostgres("host=localhost dbname=examples user=postgres password=postgres","select id, data from source",dict_row,)data|"Writing to stdout">>beam.Map(print)Writing data to the database table:fromdataclassesimportdataclassimportapache_beamasbeamfromapache_beam.options.pipeline_optionsimportPipelineOptionsfrombeam_postgres.ioimportWriteToPostgres@dataclassclassExample:data:strwithbeam.Pipeline(options=PipelineOptions())asp:data=p|"Reading example records">>beam.Create([Example("example1"),Example("example2"),])data|"Writing example records to database">>WriteToPostgres("host=localhost dbname=examples user=postgres password=postgres","insert into sink (data) values (%s)",)Seeherefor more examples.
Package: beam-postgres-connector
Beam - Postgres connectorBeam - Postgres Connector provides an io connector for PostgreSQL read/write inApache Beampipelines.Installationpipinstallbeam-postgres-connectorUsageRead From PostgreSQLimportapache_beamasbeamfrombeam_postgresimportsplittersfrombeam_postgres.ioimportReadFromPostgreswithbeam.Pipeline(options=options)asp:read_from_postgres=ReadFromPostgres(query="SELECT * FROM test_db.test.test;",host="localhost",database="test_db",user="test",password="test",port=5432,splitter=splitters.NoSplitter()# you can select how to split query for performance)(p|"ReadFromPostgres">>read_from_postgres|"WriteToStdout">>beam.Map(print))Write To Postgresimportapache_beamasbeamfrombeam_postgres.ioimportWriteToPostgreswithbeam.Pipeline(options=options)asp:write_to_postgres=WriteToPostgres(host="localhost",database="test_db",table="test.test",user="test",password="test",port=5432,batch_size=1000,)(p|"ReadFromInMemory">>beam.Create([{"name":"test data",}])|"WriteToPostgres">>write_to_postgres)Seeherefor more examples.splittersNoSplitterDo not split the queryQuerySplitterSplit the query by a specified separator string and distribute it for parallel processing across multiple nodes. Specify non-overlapping ranges for each query in the WHERE clause. The processing results will be combined using UNION ALL.LicenseMIT License.
Package: beamprofiler
BeamProfilerBeamProfileris a Python package for laser beam analysis and characterization
according to ISO 13694, ISO 11145, and other non-ISO definitions commonly used
in the industry.Free software: GNU General Public License v3Documentation:https://beamprofiler.readthedocs.io.FeaturesBeamProfilerimports the power density distribution of a laser beam and
generates a.xlsxreport with the following items:ISO parameters:total power, clip-level power, maximum power density, clip-level
power density, clip-level average power density, clip-level irradiation
area, beam aspect ratio, fractional power, flatness factor, beam
uniformity, plateau uniformity, edge steepness, beam centroid, beam width.Non-ISO parameters:clip-level beam width, clip-level edge width, modified plateau uniformity,
top-hat factor.Auxiliary graphshistogram, 2D heat map, 3D heat map, normalized energy curve.Below are some illustrations:Beam analysis report of ISO and non-ISO parametersHistogram2D heat map3D heat mapNormalized energy curveCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.HistoryVersion 11.2.0 (2023.03.13)New features:Reference rectangle on 2D, 3D heat maps (issue #7): add a reference rectangle of any size and position to the 2D, 3D heat mapsTest for auxiliary graphs: check whether the graphs are generatedDocumentationAdded new feature1.1.0 (2022.09.16)New features:User-defined file format for auxiliary graphs (issue #5): save the auxiliary graphs using any formatDocumentationAdded new featureImproved clarityCorrected typos1.0.1 (2022.09.02)Bug fixesRemoved unecessary importsCorrected Travis CI addressFixed truncated output file name (issue #3)DocumentationFixed typos1.0.0 (2022.08.15)First release on PyPI.Version 00.1.3 (2022-08-01)Fourth pre-release on PyPI0.1.2 (2022-08-01)Third pre-release on PyPI0.1.1 (2022-07-31)Second pre-release on PyPI0.1.0 (2022-07-28)First pre-release on PyPI
Package: beampy
Welcome to Beampy’s documentation!Beampy is a python module based on the Beam Propagation Method[1]used to compute light propagation into a varying refractive index.
The light propagation is done by the bpm module.
An user interface - done using Qt desginer - allows to control the parameters
and display the results.This project was initiate by Jonathan Peltier and Marcel Soubkovsky during a
master university course from the PAIP master of the université de Lorraine,
under the directive of Pr. Nicolas Fressengeas.The bpm core codes are mainly based on a compilation of MatLab codes initialy
developed by Régis Grasser during his PhD thesis[2],
and later modified at the FEMTO-ST institute of the Université de
Franche-Comté and at the LMOPS laboratory[3]of the
Université de Lorraine.References[1]K. Okamoto, in Fundamentals of Optical Waveguides,
2nd ed., edited by K. Okamoto (Academic, Burlington, 2006), pp. 329–397.[2]“Generation et propagation de reseaux periodiques de
solitons spatiaux dans un milieu de kerr massif” PhD thesis,
université de Franche-Comté 1998.[3]H. Oukraou et. al., Broadband photonic transport between waveguides
by adiabatic elimination Phys. Rev. A, 97 023811 (2018).LinksThe online documentation can be found athttps://beampy.readthedocs.io/.The source code of the whole project can be found athttps://github.com/Python-simulation/Beampy/.The PyPI repository can be found athttps://pypi.org/project/beampy/.InstallationThis package can be download in a python environment using pip install:pip install beampyOr by downloading the github folder and setting beampy as a PYTHONPATH.
If so, make sure to download Qt5, matplotlib and numpy by using this command
in the docs folder:pip install -r requirements.txtStarting the softwareTo start the Beampy interface, import beampy and start the open_app function:import beampy
beampy.open_app()Or open direclty the user_interface.py file to launch the interface.
Or even open the bpm.py to have a non-based interface version.