Saravanan666/pypi-org huggingface dataset:
Package: breeze-historical-options
breeze-historical-optionsIntroductionbreeze-historical-options provides historic options data(starting from seconds) using the ICICI Breeze API. Data can be used for backtesting, analysis and simulation purposes. All you need is a free ICICI direct account to access Breeze API.Referral Link -https://secure.icicidirect.com/accountopening?rfrlcode=8510403004&utm_source=referral&utm_medium=referral&utm_campaign=OAO2.0InstallationClone or download the repository using:git clone https://github.com/madmay247/breeze-historical-options.gitor using PyPi Package:pip install breeze-historical-optionsCreate Virtual EnvironmentInstall required dependencies(if using git clone):pip install -r requirements.txtUsageFill incred.ymlwith your Breeze API keys and credentials.Adjust parameters inexample.pyas needed (e.g., expiry dates, time range, scrip, strike range, path).Run the script:python example.pyData will be fetched and saved to the specified path.Files Explanationsample_cred.yml: Template for API credentials.expiries.json: Contains a list of expiry dates for options data.example.py: Main script to fetch data using the package.Login Codefromdatetimeimportdatetimefrombreeze_connectimportBreezeConnectfromBreezeHistoricalOptionsimportautologin,Breezyimportjson,yaml,timewithopen('cred.yml')asf:cred=yaml.load(f,Loader=yaml.FullLoader)breeze=BreezeConnect(api_key=cred['api_key'])try:session_key=autologin.get_session_key(cred=cred,force=False)except:session_key=autologin.get_session_key(cred=cred,force=True)breeze.generate_session(api_secret=cred['api_secret'],session_token=session_key)Fetch Data Functionfromdatetimeimportdatetimefrombreeze_connectimportBreezeConnectfromBreezeHistoricalOptionsimportautologin,Breezyimportjson,yaml,timeexpiry_date="06-Dec-2023"# 'expiries.json' contains a list of expiry dates in this formatstart_datetime="06-Dec-2023 9:15:00"end_datetime="06-Dec-2023 15:29:59"Breezy.fetch_data(api=breeze,scrip="CNXBAN",# 'NIFTY' for Nifty 50 | 'CNXBAN' for Bank Nifty | 'NIFFIN' for Finnifty | 'NIFMID' for Midcap Niftyexch="NFO",expiry_date=datetime.strptime(expiry_date,"%d-%b-%Y"),start_datetime=datetime.strptime(start_datetime,"%d-%b-%Y %H:%M:%S"),end_datetime=datetime.strptime(end_datetime,"%d-%b-%Y %H:%M:%S"),start_strike=47000,end_strike=47200,step=100,max_threads=3,#Set this to 1 if you are getting api breeze_historical_v2() errorexport_path='HistoricData/'#will auto-create path if it doesn't exist)ContributingContributions are welcome. Please fork the repository, make your changes, and submit a pull request.SupportConsider supporting via using this referral link for ICICI Direct account:https://secure.icicidirect.com/accountopening?rfrlcode=8510403004&utm_source=referral&utm_medium=referral&utm_campaign=OAO2.0Usage Videohttps://github.com/madmay247/breeze-historical-options/assets/132202725/3047a80e-1ae3-44f4-ac20-f1445375e0cf
Package: breeze-rect
breeze-rectA breeze plugin for the Rect programming languageinstalationpip3 install breeze-build breeze-rect

cd your_rect_project
touch breeze.tomlthen, in your configuration file, type the following contents:[project]name="hello"lang="rect"[config.rect-lang]type="exec"sources=["./src/**/*.rct"]and finally,breeze build
Package: breeze-strategies
LIVE  python_strategiesSteps to install Strategy Library for LIVEpipinstallbreeze_strategies==1.0.22Updating Librarypipinstall--upgradebreeze_strategiescode usage#Import the libraryfrombreeze_strategiesimportStrategies#Configure the strategy using API Keys and set maxprofit/takeprofit level.#Type 1obj=Strategies(app_key="your app key",secret_key="your secret key",api_session="your api session",max_profit="your max profit",max_loss="your max loss")#Execute the strategyobj.straddle(strategy_type="long",stock_code="NIFTY",strike_price="18700",quantity="50",expiry_date="2023-06-29T06:00:00.000Z")#Execute the strangle strategyobj.strangle(strike_price_call="18700",strike_price_put="18300",strategy_type="long",stock_code="NIFTY",quantity="50",expiry_date="2023-06-29T06:00:00.000Z")#Execute Single Legobj.single_leg(right="Call",strategy_type="short",stock_code="NIFTY",strike_price="18700",quantity="50",expiry_date="2023-06-29T06:00:00.000Z")#SquareOff existing positions and exit the strategy for straddleobj.stop()#SquareOff existing positions and exit the strategy for strangleobj.stop(is_strangle=True)#SquareOff existing positions and exit the strategy In case of single_leg pass single_leg flag as True as mentioned belowobj.stop(single_leg=True)#Generate Profit & Loss report (this method will work for both straddle and strangle)obj.get_pnl()
Package: breezy
Breezy (brz) is a decentralized revision control system, designed to be
easy for developers and end users alike.By default, Breezy provides support for both theBazaarandGitfile
formats.You can install from source by following the instructions in the INSTALL file.
At the moment of writing there are no binary packages available.To learn how to use Breezy, see the official documentation in thedocdirectory or refer to the Bazaar documentation at
<https://www.breezy-vcs.org/doc/en/>.Breezy is Free Software, and is released under the GNU General Public License,
version 2 or later.Breezy is a friendly fork of the Bazaar (bzr) project, hosted onhttp://bazaar.canonical.com/. It is backwards compatibility with
Bazaar’s disk format and protocols. One of the key differences with
Bazaar is that Breezy runs on Python 3, rather than on Python 2.Breezy highlightsBreezy directly supports both central version control (like cvs/svn) and
distributed version control (like git/hg). Developers can organize their
workspace in whichever way they want on a per project basis including:checkouts (like svn)feature branches (like hg)shared working tree (like git).It also directly supports and encourages a large number of development best
practices like refactoring and pre-commit regression testing. Users can
choose between our command line tool and our cross-platform GUI application.
For further details, see our website.FeedbackIf you encounter any problems with Breezy, need help understanding it, or would
like to offer suggestions or feedback, please get in touch with us:Ask a question through our web support interface, athttps://answers.launchpad.net/brz/Report bugs athttps://bugs.launchpad.net/brz/+filebugWrite to the mailing list atbazaar@lists.canonical.comYou can join the list at <https://lists.ubuntu.com/mailman/listinfo/bazaar>.
You don’t need to subscribe to post, but your first post will be held
briefly for manual moderation.Please mention that you are using Breezy rather than Bazaar.Talk to us inirc://irc.oftc.net/breezyor#breezy:matrix.org.Our mission is to make a version control tool that developers LOVE to use
and that casual contributors feel confident with. Please let us know how
we’re going.The Breezy Team
Package: brei
BreiMinimal workflow system and alternative to Make.Read from TOML or JSON (alsopyproject.tomlin[tool.brei]section)Only Python ≥ 3.11 requiredRuns task lazily and in parallelSupports variables, templates, includes and custom runnersRead more:documentationWhy (yet another workflow tool)This tool was developed as part of the Entangled project, but can be used on its own. Brei is meant to perform small scale automisations for literate programming in Entangled, like generating figures, and performing computations locally. It requires no setup to work with and workflows are easy to understand by novice users. If you have any more serious needs than that, we'd recommend to use a more tried and proven system, of which there are too many to count.When to useYou're running a project, there's lots of odds and ends that need automisation. You'd use aMakefilebut your friend is on Windows and doesn't have GNU Make installed. You try to ship a product that needs this, but don't want to confront people trying it for the first time with a tonne of stuff they've never heard of.InstallTo install, you may:pip install breiOr you use a tool for virtual environments, we recommendPoetry, after creating a new project withpoetry init:poetry add breiDevelopmentTo run unit tests and type checker:poetry install
poetry shell
brei testTo build the documentation, run thebrei weaveworkflow:# poetry shell
brei weaveSome parts of Brei are literate. Run the entangled watch daemon while editing code,entangled watchor else, as a batch job, stitch changes before committing:entangled stitchLicenseCopyright Netherlands eScience Center, Apache License, see LICENSE.
Package: breizorro
breizorroA tool for creating a binary mask given a FITS imageInstallationInstallation fromsource,
working directory where source is checked out$pipinstall.This package is available onPYPI, allowing$pipinstallbreizorroTo show help message and exit$breizorro--helpbreizorro.breizorro-2022-08-2411:07:39,311INFO-Welcometobreizorrobreizorro.breizorro-2022-08-2411:07:39,375INFO-Version:0.1.1breizorro.breizorro-2022-08-2411:07:39,375INFO-Usage:breizorro--helpusage:breizorro[-h][-rIMAGE][-mMASK][-tTHRESHOLD][-bBOXSIZE][--savenoise][--mergeMASKs|REGs)[MASK(s|REGs)...]][--subtractMASK(s|REGs)[MASK(s|REGs...]][--number-islands][--remove-islandsN|COORD[N|COORD...]][--ignore-missing-islands][--extract-islandsN|COORD[N|COORD...]][--minimum-sizeMINSIZE][--make-binary][--invert][--dilateR][--erodeN][--fill-holes][--sum-peakSUM_PEAK][-oOUTFILE][--gui]breizorro[options]--restored-imagerestored_imageoptionalarguments:-h,--helpshowthishelpmessageandexit-rIMAGE,--restored-imageIMAGERestoredimagefilefromwhichtobuildmask-mMASK,--mask-imageMASKInputmaskfile(s).Either--restored-imageor--mask-imagemustbespecfied.-tTHRESHOLD,--thresholdTHRESHOLDSigmathresholdformasking(default=6.5)-bBOXSIZE,--boxsizeBOXSIZEBoxsizeoverwhichtocomputestats(default=50)--savenoiseEnabletoexportnoiseimageasFITSfile(default=donotsavenoiseimage)--mergeMASK(s)|REG(s)[MASK(s)|REG(s)...]Mergeinoneormoremasksorregionfiles--subtractMASK(s)|REG(s)[MASK(s)|REG(s)...]Subractoneormoremasksorregionfiles--number-islandsNumbertheislandsdetected(default=donotnumberislands)--remove-islandsN|COORD[N|COORD...]Listofislandstoremovefrominputmask.e.g.--remove-islands1182020h10m13s,14d15m20s--ignore-missing-islandsIfanislandspecifiedbycoordinatesdoesnotexist,donotthrowanerror--extract-islandsN|COORD[N|COORD...]Listofislandstoextractfrominputmask.e.g.--extract-islands1182020h10m13s,14d15m20s--minimum-sizeMINSIZERemoveislandsthathaveareasfewerthanorequaltothespecifiednumberofpixels--make-binaryReplaceallislandnumberswith1--invertInvertthemask--dilateRApplydilationwitharadiusofRpixels--erodeNApplyNiterationsoferosion--fill-holesFillholes(i.e.entirelyclosedregions)inmask--sum-peakSUM_PEAKSumtopeakratiooffluxislandstomaskinoriginalimage.e.g.--sum-peak100willmaskeverythingwitharatioabove100-oOUTFILE,--outfileOUTFILESuffixformaskimage(defaultbasedoninputname--guiOpenmaskingui.LicenseThis project is licensed under the GNU General Public License v3.0 - seelicensefor details.ContributeContributions are always welcome! Please ensure that you adhere to our coding
standardspep8.
Package: brelpy
brelpyA Python package to communicate with the BrelDD-7002BandDD-1554hubs.
It allows you to control and read outBrelmotors for blinds.InstallationThe package can be installed by running:pip3installbrelpyAlternatively one can clone this repository and install by runningpip3 install .to get
the latest (possibly unreleased) version.UsageA typical usage scenario looks like this:frombrelpyimportBrelHubwithBrelHub("<ip-of-your-hub>","<key-of-your-hub>")ashub:fordeviceinhub.devices:device.close()The key can be found by multi-tapping the version indicator in the "me"-screen in the BrelHome app.
It has a form like "1ab2cd34-01ab-a1". It can also be provided in theBREL_KEYenvironment variable.
If it is not provided, you can still connect to the Hub but not perform any actions on the devices.DisclaimerThis package is open source software and has no affiliation with Brel.
Package: bren
bren is a customnumpybased library, powered by automatic differentiation, inspired byTensorflow/Keras, which allows users to build small scale simple neural networks. It's analogous yet simpler design to the Keras api allows users to produce, train and save their own models, with custom components, without having to learn an entirely new structure.bren is part of a sequence of neural network from scratch projects and a successor to theneural-network-from-scratch-v2, with one major update being the integration of automatic differentitation. Automatic differentiation allows for the real-time determination of derivatives during back propagation and reduces the need for users to couple mathematical computation with derivatives as was required in the previous projects.
Package: brena
BrenaNerdy CLI invoice generator. Brena generates invoices based on a .toml file you define.
You can do everything in the terminal. No need to open your browser and trouble yourself. Add a few lines and be done!Why you might ask? Because I hate to leave the terminal - that's it!InstallationTo install it type:pipinstallbrenaand you are done. Brena depends onweasyprint, so you might be required to install additional requirements. Look atweasyprint docs.
If you don't want to do that - check out the docker option.UsageIf you have defined yourbrena.tomlfile (how to do it is shown below), then you can just:brenaTo generate all the invoices orbrenainvoicecode1invoicecode2To generate only invoices with specific codes.You can read a bit more about available commands after typingbrena--helpConfig: brena.tomlBelow you can see an example of the requiredbrena.tomlfile.
Brena expects this file to be found in current working directory.[companies.default]# important to keep it as defaultname="Name Of Your Company"address_line_1="Some streeet 8/10"address_line_2="11-111 Some City"nip="Your tax id number here if any"language="pl"bank_accounts={PLN="PL11 1111 1111 1111 1111",EUR="PL11 1111 1111 1111 1111"}[companies.someclient]name="Some Client Sp. z o. o."address_line_1="Another street"address_line_2="01-111 Warsaw"nip="Your clients tax id if any"[[invoices]]code="01/12/2020"company="someclient"currency="PLN"# this value needs to be found in bank_accounts keyslanguage="pl"# for now we only support pl and endates={issued="2020-12-25",sold="2020-12-31",due_to="2021-01-15"}[[invoices.positions]]name="IT service"quantity=1amount=15000vat_stake=23[[invoices]]code="02/12/2020"company="someclient"currency="EUR"language="en"dates={issued="2020-12-25",sold="2020-12-31",due_to="2021-01-10"}[[invoices.positions]]name="IT services"quantity=172.5amount=85.2vat_stake=23[[invoices.positions]]name="Additional invoice position"quantity=1amount=82vat_stake=23For now I only support toml, maybe yaml in the future. Why toml over yaml? No reason, just my preference in this case.Dependenciesjinja2toml
WeasyPrint
typerTechnologyThis bases ontoml,weasyprintandjinja2.Toml is used for configuration.
weasyprint gets the html template rendered to pdf.
Lastly jinja2 to add some contexts here and there.Formatting of the code is done usingblack,isort.flake8,autoflakeandbanditto check for potential vulns.Versioning is done withbumpversion.
Patch for merges to develop, minor for merged to master. Merge to master means release to pypi.And wonderfulpoetryas dependency manager.CLI is done withtyper<- wonderful CLI library.I use type hinting where it's possible.To start developing you need to install poetrypip install poetryand then justpoetry install.DockerTODOKnown make commandsflake
isort
isort-inplace
bandit
black
linters
bumpversion
black-inplace
autoflake-inplace
format-inplaceMost important ones aremake lintersandmake format-inplace. Before each commit it's required to run these checks.LicenseMIT
Package: bre-next
The Business Rules Engine is a separate application before ISP-Invoice.The application is created to enrich and/or transform data in the XML via
customer specific business rules, right before importing in ISP-InvoiceIt can also be used without ISP-SmartScan to enrich XMLs from ie. IDT,
InvoiceSharing and other EDI-sources.Getting startedSetting up the development environment takes some steps, which are outlined
below.### Installing dependenciesEnsure you have a virtualenv created and activated in the root-directory
- virtualenv –python=python3 env
- source env/bin/activateInstall the dev dependencies with **
- pip install -e “.[tests,pycodestyle,docs,dev,release]”** Installing on Mac needs the quotes, where Windows/Linux might not.
Details:https://zsh.sourceforge.io/Guide/zshguide05.html#l137Run unit-testsEnsure you have a virtualenv created and activated in the root-directory
Simply run Pytest
- pytestCode coverageTo view how many code has been covered during tests we use CoverageEnsure you have a virtualenv created and activated in the root-directory
Run coverage
- coverage run –source bre -m py.test
Or to export to HTML
- coverage html -d coverage_htmlCommand line toolTo start the BRE-tool via command line use the following command
- bretool URL-TO-INFO-API
Example:
- bretoolhttp://localhost:8000/bre/api/infoOptional;y add debug-information in log-file;
- bretoolhttp://localhost:8000/bre/api/info–loglevel=DEBUGOptionally use a different log-file
- bretoolhttp://localhost:8000/bre/api/info–logfile=PATH_TO_FILE
Package: brent
They're good DAGs: brent.What it isBrent is a small, but fun, python library that makes it easy to explore causal graphical modelling and do-calculus
on systems with discrete variables. Brent is a tool that can help out when you can write a system like below, but
want to write complex queries on it.QuickstartYou can install brent via pip:pipinstallbrentNext we need to have a dataset and create a graph from it.
The code below demonstrates how to do this.frombrentimportDAGfrombrent.commonimportmake_fake_dfdag=(DAG(dataframe=make_fake_df(7)).add_edge("e","a").add_edge("e","d").add_edge("a","d").add_edge("b","d").add_edge("a","b").add_edge("a","c").add_edge("b","c").add_edge("c","f").add_edge("g","f"))dag.plot()Not only do we get pretty plots, but we also can build
an expressive query on top of it.frombrentimportQueryq=Query(dag).given(d=1).do(a=0,c=1)q.plot()If you're more interested in doing the inference, that's simple
too.# we can also see updated probabilitiesq.infer()q.infer(give_table=True)DocumentationLiked the quickstart? The documentation (which is generated withpdoc3) can be foundhere.Alpha NoticeNOTE!this project is inpreviewstages. I think I have something fun here and I've written unit tests on what I'm doing but parts are still going under review. Also there are parts of the library currently missing but which are on a roadmap:conditional indepdence testsapi for counterfactual queriesmore unit testsdatasets to start/teach withclear loggingestimator/transformers for scikit-learnDeveloping LocallyAfter cloning you may installbrentin the virtual
environment via:$pipinstall-e".[dev]"You can generate documentation locally by running:$pdoc--html--overwrite--template-dirdoc-settings--http0.0.0.0:12345brent
Package: brent-search
brent-searchBrent's method for univariate function optimization.Examplefrombrent_searchimportbrentdeffunc(x,s):return(x-s)**2-0.8r=brent(lambdax:func(x,0),-10,10)print(r)The output should be(0.0,-0.8,6)InstallFrom command line, enterpipinstallbrent-searchTestingpython-c"import brent_search; brent_search.test()"DocumentationDocumentationAuthorsDanilo HortaAcknowledgementshttp://people.sc.fsu.edu/~jburkardt/c_src/brent/brent.cNumerical Recipes 3rd Edition: The Art of Scientific Computinghttps://en.wikipedia.org/wiki/Brent%27s_methodLicenseThis project is licensed under theMIT License.
Package: brep
BREP : Binary Search in plaintext and gzip filesSearch large files in O(log n) time using binary search.We support plaintext and Gzipped files.Benchmark : 8x faster thangrepon a 2GB dataset !brepis usually faster thangrepfor >1GB datasets.Checktests/benchmark.pyto reproduce the results.grep ^777 test.txt : 1.594 s (15 runs)
brep 777 test.txt : 206.8 ms (15 runs)Installationpip install breporpip install .from this repoIndex your fileIn order to conduct binary search, your file needs to be sorted.We recommendGNU sort, as it's multithreaded and supports large files.LC_ALL=C sort -u -o output_file input_fileBREP supports compressed file in the GZIP format.We recommendpigzfor quick multicore compression :pigz fileUsageProvide 1 prefix search term and 1 filepathbrep 77777 test/large.gzYou can also search from our Python classfrombrepimportSearchforresultinSearch("77777","test/large.gz"):print(result)ContributePRs are welcome!Install dev dependencies:pip install -e .[dev]Test and lint before submitting:pytest && flake8TodoReimplement in RustFaster gz size estimationSearch multiple strings at once
Package: brep-to-h5m
brep_to_h5mA Python package that converts Brep CAD geometry files to h5m geometry files compatible with DAGMC simulations.The method uses gmsh to create a conformal mesh of the geometry.
The mesh is then converted into a h5m file using either thevertices-to-h5m(default) orstl-to-h5mpackage.Installation (Conda)Create a new enviroment and activate the enviroment.condacreate--namemy_env
condaactivatemy_envThen install this packagecondainstall-cfusion-energy-cconda-forgebrep_to_h5mThe above command should also installmoabandgmshInstallation (Conda + pip)Create a new enviroment and activate the enviroment.condacreate--namemy_env
condaactivatemy_envInstall dependancies that are not installed with pip (MOABandGMSH)condainstall-cconda-forgemoab
condainstall-cconda-forgegmsh
condainstall-cconda-forgepython-gmshThen install this packagepipinstallbrep_to_h5mUsageSee theexamplesfolder for a complete workflow from geometry creation to conversion to h5m and then use in and OpenMC simulation.To make a Brep file with merged surfaces consider using theParamakas it has aexport_brepmethod that merges the shared surfaces for Brep files.Starting with a Brep file that has shared surfaces the following command should produce a DAGMC compatible h5m file.frombrep_to_h5mimportbrep_to_h5mbrep_to_h5m(brep_filename='my_brep_file_with_merged_surfaces.brep',material_tags=['material_for_volume_1','material_for_volume_2','material_for_volume_3','material_for_volume_4','material_for_volume_5','material_for_volume_6','material_for_volume_7','material_for_volume_8',],h5m_filename='dagmc.h5m',min_mesh_size=30,max_mesh_size=50,mesh_algorithm=1,)The resultingdagmc.h5mfile can now be used in neutronics simulation withDAGMCenabled transport codes.AcknowledgementMany thanks to @makeclean for suggesting gmsh for meshing and Brep for the CAD file format. Also for showing the way forwards by startinggmsh2dagmc.
Package: breq
A simple library to facilitate browsing/paging through Web service requests.Web ServicesBreq includes basic classes for browsing requests to the following Web services:GitHub APIGuardian Open PlatformReddit APIWikipedia APITODOsDocumentation with examplesContributingForkthe repositoryon GitHubCommit your changes to thedevelopbranchWrite test(s) for any new featurePush your changes and send a pull request