Saravanan666/pypi-org huggingface dataset:
Package: easy-blockchain
A blockchain, coin or building tools for human. It doesn’t include
servers.Getting StartedInstallation:pip install easy_blockchainCreate your first wallet and add your first transaction:from easy_blockchain.wallet import Wallet
from easy_blockchain.blockchain import Block, BlockChain

# Create the first user
wallet = Wallet()
user01 = wallet.getPublicKey()
trans01 = wallet.create_transaction('test01', 1, 0.5, 'one message')
trans02 = trans01.copy() # create a forgery attack
print('Check if a forgery attack have same as real transaction')
print('trans01 == trans02', trans01 == trans02)

# Create the second user
wallet02 = Wallet()
user02 = wallet02.getPublicKey()
trans03 = wallet02.create_transaction(user01, 1.5, 0.12,'user02 send to user01')In miner side, the miner receive your transaction, add it to blockchain
and mining:# add transactions to a block
block = Block()
block.add_transaction(trans01)
block.add_transaction(trans02)  # check adding a forgery attack
block.add_transaction(trans03)

# check how many transactions were added
print('--------------------------------------')
print('The block 1 have 2 real transaction:')
print(json.dumps(block.transactions, indent=2))
# create a blockchain and become an miner
coin = BlockChain()
# mine a proof
proof = coin.mine_proof()
print('The first proof is:',proof)
# save blockchain to local database
coin.save_chain()The blockchain also provides balance and history of trading:print('--------------------------------------')
print('The transaction history and the balance of users:')
mycoin = coin.get_history(user01)
print('User: user01 balance:', coin.get_balance(user01))
print(json.dumps(mycoin, indent=4))

mycoin = coin.get_history(user02)
print('User: user02 balance:', coin.get_balance(user02))
print(json.dumps(mycoin, indent=4))

mycoin = coin.get_history(user03)
print('User: user03 balance:', coin.get_balance(user03))
print(json.dumps(mycoin, indent=4))
Package: easy-bloom-filter
bloom filterpython implementation of bloom filterWhat is bloom filter?https://en.wikipedia.org/wiki/Bloom_filterinstallation$pipinstalleasy-bloom-filterusageSimple examplefromeasy_bloom_filterimportBloomFilter,Responsebf=BloomFilter(init_size=2001,func_count=3)bf.add_element("first")bf.add_element("second")bf.add_element({"num":"3"})print(bf.query("4")==Response.NO)# True (not added to filter)print(bf.query("first")==Response.MAYBE)# True (maybe added to filter check with the source of truth)print(bf.false_positive_probability)# 9.09884490736791e-08print(bf.actual_size)# 2000  (round to multiple of 8 for storing the data on bits)install dev requirements$pipinstall-rrequirements-dev.txtonly tests$pytest.tests with coverage$pytest--cov-report=html--cov=py_bloom_filtertests/
Package: easy-bounding-box
bounding_boxA Python package designed to simplify bounding box operations for object detection. It provides functions to calculate box centers, dimensions, and intersections, reducing the complexity of these tasks in your code. With Bounding_Box, you can streamline your object detection workflow, making it more efficient and straightforward.Installationpip install easy-bounding-boxExamplefromeasy_bounding_boximportBoundingBoximportnumpyasnpimportcv2img=np.zeros((750,1000,3))bounding_box=BoundingBox([547.31,41.473,940.4,712.92])bounding_box_2=BoundingBox((500,20,700,350))bounding_box_3=bounding_box_2.change_size(0.4,False)line=(100,250,530,250)img=cv2.line(img,line[:2],line[2:],(255,255,0),2)img=cv2.rectangle(img,bounding_box[:2],bounding_box[2:],(255,0,0),2)img=cv2.rectangle(img,bounding_box_2[:2],bounding_box_2[2:],(0,255,0),2)img=cv2.rectangle(img,bounding_box_3[:2],bounding_box_3[2:],(0,0,255),2)print("Bounding box 2 is intercepting blue line: ",bounding_box_2.box_intercept_line(line))print("bounding box is intercepting bounding_box_2: ",bounding_box.box_intercept_box(bounding_box_2.bounding_box))print("How much of bounding_box_2 is in bounding_box: ",bounding_box_2.iou(bounding_box.bounding_box))print("Bounding box 3 values: ",bounding_box_3.bounding_box)print("Bounding box 3 listed values: ",bounding_box_3.list_bounding_box)print("Bounding box 3 middle: ",bounding_box_3.middle)print("Bounding box 3 listed middle: ",bounding_box_3.list_middle)print("Bounding box 3 dimensions: ",bounding_box_3.dimensions)print("Bounding box 3 listed dimensions: ",bounding_box_3.list_dimensions)print("Bounding box 3 area: ",bounding_box_3.area)print("Bounding box 3 walls coordinates: ",bounding_box_3.walls)cv2.imshow("image",img)cv2.waitKey(0)cv2.destroyAllWindows()
Package: easybq
easybq | Easy BigQueryInstallpipinstalleasybqIf you upload file via gcs, you may install such aspipinsrtalleasybq[gcs]Usageimporteasybqdataset='sample_dataset'table='sample_table'csvfile='sample.csv'bq=easybq.Client()schema=bq.get_schema(dataset,table)bq.upload_csv(filename=csvfile,dataset=dataset,table=table,schema=schema)
Package: easybt
easyBTMake Binary trees easy for everyone it is used to serialize-deserialize  binary trees and performs much more operationsSerializeTree (tree nodes to list )DesializeTree (list to tree nodes )Height (Finds height of the tree) and Diameter (Finds diameter of the tree)InOrderTraversal,PostOrderTraversal,PreOrderTraversalLevelOrderTraversalMirrorTreeLeafNodes,NumberOfLeafNodesVisualizeTreeInstallationUse the package managerpipto install easyBT.pipinstalleasyBTUsagefromeasyBT.binarytreeimportBinaryTree# Create Objectbt=BinaryTree()# add nodes in listnums=[1,2,None,None,5,6]# it will return root node of the treeroot=bt.DesializeTree(nums)Examples[1,2,3,4,5,6][1,2,None,4,5,6]11/\/232/\//\45645/6DocumetationTo Read Documentationprint(bt.SerializeTree.__doc__)DesializeTreefromeasyBT.binarytreeimportBinaryTree# Create Objectbt=BinaryTree()# add nodes in listnums=[100,500,20,10,30]# it will return the root node of the treeroot=bt.DesializeTree(nums)100/\50020/\1030Visualize TreeVisualizeTree(root)#it will print"""['_', '_', '1', '_', '_']['_', '2', '_', '3', '_']['4', '_','5,6', '_', '_']"""BinarySearch TreesearchInBST (finds element in the bst)createBST (create bst)minValueNodeInBST (finds min value in the bst)maxValueNodeInBST (finds max value in the bst)deleteNode (delete node from the bst)fromeasyBT.binarytreeimportBinarySearchTreebst=BinarySearchTree()Creationdata=[100,500,20,10,30]root=Noneroot=bst.createBST(data=data)100/\20500/\1030Insertionbst.insertInBST(root,40)orroot=bst.insertInBST(root,40)100100/\bst.insertInBST(40)/\20500--------->20500/\/\10301030\40Deletionbst.deleteNode(root,20)5050/\deleteNode(20)/\3070--------->3070/\/\                      \/\20406080406080bst.deleteNode(root,30)5050/\deleteNode(30)/\3070--------->4070\/\/\4060806080ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.ContributorsSamir Patil
Package: easybuild
EasyBuildis a software build
and installation framework that allows you to manage (scientific) software
on High Performance Computing (HPC) systems in an efficient way.SourcesThe EasyBuild sources are spread across different GitHub repositories:themain easybuild repositoryhosts the documentation and theeasybuildPython metapackagetheeasybuild-framework repositoryhosts the source code of the EasyBuildframeworktheeasybuild-easyblocks repositoryhostseasyblocks, i.e. implementations of install procedurestheeasybuild-easyconfigs repositoryhostseasyconfigs, i.e. EasyBuild specification filesCorresponding Python packages are available via PyPi:https://pypi.python.org/pypi/easybuildhttps://pypi.python.org/pypi/easybuild-frameworkhttps://pypi.python.org/pypi/easybuild-easyblockshttps://pypi.python.org/pypi/easybuild-easyconfigsDocumentationRead the fine manual (RTFM!) athttp://docs.easybuild.io.Getting startedThe recommended way of installing EasyBuild isusing pip.
You shouldconfigureEasyBuild to behave as you prefer, subsequently.That is all that is needed to get started with installing (scientific) software with ease.
Take a look at thetypical workflowexample in the EasyBuild documentation that shows how to make EasyBuild build andinstall WRF with a single command.Quick demo for the impatientAfterinstalling EasyBuild,
you can build and installHPLon top of a compiler toolchain that consists of open source
components (GCC, OpenMPI, etc.) by running the following commands:$ module load EasyBuild
$ export EASYBUILD_PREFIX=/tmp/$USER  # example installation prefix
$ eb HPL-2.3-foss-2019b.eb --robotThis should install a module file for HPL which you can load to start using it:$ export MODULEPATH=$EASYBUILD_PREFIX/modules/all:$MODULEPATH
$ module load HPLFor more information on using EasyBuild, see theEasyBuild documentationContact infoYou can get in contact with the EasyBuild community in different ways:Mailing listAn EasyBuild mailinglisteasybuild@lists.ugent.beis available to subscribe to.This list is used by both users and developers of EasyBuild, so if you
have any questions or suggestions, you can post them there.Only members can post to this mailinglist. To request membership, seehttps://lists.ugent.be/wws/info/easybuild.SlackContact the EasyBuild community via Slack:https://easybuild.slack.com,
self-request an invite viahttps://easybuild.io/join-slack.TwitterThe EasyBuild team also has a Twitter feed:@easy_build.DisclaimerEasyBuild has mostly been used and tested on x86_64-based Linux systems (RedHat-based, Debian, SuSE, …),
but can be easily extended for other platforms.
Limited provisions for other Unix-based operating systems (e.g., Mac OS X) are also available.LicenseEasyBuild was created by theHigh-Performance Computing team at Ghent
University, is currently maintained by theEasyBuild community,
and is made available under the GNU General Public License (GPL) version 2.AcknowledgementsEasyBuild was created with support ofGhent University,the Flemish Supercomputer Centre (VSC),the Hercules foundationandthe Department of Economy, Science and Innovation (EWI).
Package: easybuild-easyblocks
EasyBuildis a software build
and installation framework that allows you to manage (scientific) software
on High Performance Computing (HPC) systems in an efficient way.Theeasybuild-easyblockspackage provides a collection ofeasyblocksfor
EasyBuild. Easyblocks are Python modules that implement the install procedure for a
(group of) software package(s). Together with the EasyBuild framework,
they allow to easily build and install supported software packages.The EasyBuild documentation is available athttp://docs.easybuild.io/.The easybuild-easyblocks source code is hosted on GitHub, along
with an issue tracker for bug reports and feature requests, seehttps://github.com/easybuilders/easybuild-easyblocks.Related Python packages:easybuild-frameworkthe EasyBuild framework, which includes theeasybuild.frameworkandeasybuild.toolsPython
packages that provide general support for building and installing softwareGitHub repository:https://github.com/easybuilders/easybuild-frameworkPyPi:https://pypi.python.org/pypi/easybuild-frameworkeasybuild-easyconfigsa collection of example easyconfig files that specify which software to build,
and using which build options; these easyconfigs will be well tested
with the latest compatible versions of the easybuild-framework and easybuild-easyblocks packagesGitHub repository:https://github.com/easybuilders/easybuild-easyconfigsPyPi:https://pypi.python.org/pypi/easybuild-easyconfigs
Package: easybuild-easyconfigs
EasyBuildis a software build
and installation framework that allows you to manage (scientific) software
on High Performance Computing (HPC) systems in an efficient way.Theeasybuild-easyconfigspackage provides a collection of well-tested
exampleeasyconfig filesfor EasyBuild.
Easyconfig files are used to specify which software to build, which
version of the software (and its dependencies), which build parameters
to use (e.g., which compiler toolchain to use), etc.The EasyBuild documentation is available athttp://docs.easybuild.io/.The easybuild-easyconfigs package is hosted on GitHub, along
with an issue tracker for bug reports and feature requests, seehttps://github.com/easybuilders/easybuild-easyconfigs.Related Python packages:easybuild-frameworkthe EasyBuild framework, which includes theeasybuild.frameworkandeasybuild.toolsPython
packages that provide general support for building and installing softwareGitHub repository:https://github.com/easybuilders/easybuild-frameworkPyPi:https://pypi.python.org/pypi/easybuild-frameworkeasybuild-easyblocksa collection of easyblocks that implement support for building and installing (groups of) software packagesGitHub repository:https://github.com/easybuilders/easybuild-easyblockspackage on PyPi:https://pypi.python.org/pypi/easybuild-easyblocks
Package: easybuild-framework
EasyBuildis a software build
and installation framework that allows you to manage (scientific) software
on High Performance Computing (HPC) systems in an efficient way.Theeasybuild-frameworkpackage is the core of EasyBuild. It
supports the implementation and use of so-called easyblocks which
implement the software install procedure for a particular (group of) software
package(s).The EasyBuild documentation is available athttp://docs.easybuild.io/.The EasyBuild framework source code is hosted on GitHub, along
with an issue tracker for bug reports and feature requests, seehttps://github.com/easybuilders/easybuild-framework.Related Python packages:easybuild-easyblocksa collection of easyblocks that implement support for building and installing (groups of) software packagesGitHub repository:https://github.com/easybuilders/easybuild-easyblockspackage on PyPi:https://pypi.python.org/pypi/easybuild-easyblockseasybuild-easyconfigsa collection of example easyconfig files that specify which software to build,
and using which build options; these easyconfigs will be well tested
with the latest compatible versions of the easybuild-framework and easybuild-easyblocks packagesGitHub repository:https://github.com/easybuilders/easybuild-easyconfigsPyPi:https://pypi.python.org/pypi/easybuild-easyconfigs
Package: easycaching
Shared, persistent, and smart cachingDocumentationhttps://easycache.readthedocs.io/en/latest/What is it?easycaching provides a single shared interface for storing and retreiving data from memory among many processes(forks) of an application.Featuresfast and shared access to datapersistent cache backed by a databaseauto-forkingpython syntaxGet StartedpipinstalleasycachingCache UsageimportasynciofromeasycachingimportEasyCacheManagerasyncdefmain():# create EasyCache instancecache=awaitEasyCacheManager.create('test')test=awaitcache.create_cache('test')# setawaittest.set('foo','bar')# getcached_value=awaittest.get('foo')# booleanexists=awaittest.contains('foo')# iterate over cache itemsasyncforcache_itemintest:print(cache_item)# deleteawaittest.delete('foo')# clear all cacheawaittest.clear()# access via managerawaitcache.cache['test'].set('first','worst')awaitcache.cache['test'].set('second','best')awaitcache.cache['test'].set('third','treasure chest')# safely exitawaitcache.close()asyncio.run(main())Queue UsageimportasynciofromeasycachingimportEasyCacheManagerasyncdefmain():# create EasyCache instancecache=awaitEasyCacheManager.create('test')test_queue=awaitcache.create_queue('test')# add items to queueawaittest_queue.put('first')awaittest_queue.put('second')awaittest_queue.put('third')# grab items from queueresult=awaittest_queue.get()awaittest_queue.get()# secondawaittest_queue.get()# thirdresult=awaittest_queue.get()# empty{'warning':'queue empty'}# empty a queueawaittest_queue.clear()# accessing via managerawaitcache.queues['test'].put('fourth')awaitcache.queues['test'].put('fifth')# safely exitawaitcache.close()FastAPI Usage - Cache# basic.pyfromfastapiimportFastAPIfromeasycachingimportEasyCacheManagerapp=FastAPI()@app.on_event('startup')asyncdefstart_cache():app.cache=awaitEasyCacheManager.create('test')# create cache instanceawaitapp.cache.create_cache('test')@app.get('/cache')asyncdefview_cache(key:str):return{key:awaitapp.cache.cache['test'][key]}@app.post('/cache')asyncdefset_cache(key:str,value:str):returnawaitapp.cache.cache['test'].set(key,{'json':value})uvicorn--host0.0.0.0--port8230basic:app--workers=5FastAPI Usage - Queue#basic.pyfromfastapiimportFastAPIfromeasycachingimportEasyCacheapp=FastAPI()@app.on_event('startup')asyncdefstart_cache():app.cache=awaitEasyCacheManager.create('test')awaitapp.cache.create_queue('test')@app.post('/queue')asyncdefcreate_queue(name:str):queue=awaitapp.cache.create_queue(name)returnf"queue{name}created"@app.post('/queue/{queue}')asyncdefadd_to_queue(queue:str,data:dict):returnawaitcache.queues[queue].put(data)@app.get('/queue/{queue}')asyncdefpull_from_queue(queue:str):returnawaitcache.queues[queue].get()uvicorn--host0.0.0.0--port8220--workers5basic:appUnder the Hoodeasycaching utilizes the smart caching ofaiopyqlto provide cache acesss, cache storage, and perhaps most importantly updates and invalidation.Data access sharing is made possible via proxy methods usingeasyrpc. A cache background task is created & managed by gunicorn which main application workers access via proxies.
Package: easycalculate
easycalculateA package for calculate Math problem contain easy calculation and easy linear algebra problem, in the future author will add functions to solve easy geometry problems.Written by JinXinxiWritten with PythonLatest Version: 2024-1-25 0.1.0Brief overview:Sum(): Sum functionSubtract(): Subtract functionMultiply(): quadrature functionDivide(): a quotient function that gives a judgment on whether to divide by integers, 0: not divide by integers; 1: Dividing by wholeSqare(): Find the root of the power, the y-th power of xSquare_ Root(): Open root functionInvert(): Find the inverse ordinal numberDeterminant(): Find the value of the number of rows and columnsCofactor(): finding algebraic cofactorsE-MailYou can click on my username on the right to send me emails.Addingmatrix_show(): Format the output matrix by obtaining the input list, number of rows or columns, and by row or column.cube_volume(): -> function's explanationcircle_square(): -> function's explanationspherical_volume(): -> function's explanationcuboid_volume(): -> function's explanationQuestionIf you have any questions or problems, you can send me emails or submit to issue in my homepage.
Package: easy-cdll
easy-cdllBoost the transaction formatting and development between python and c languagesRequirementsLinux, maxOSPython 3.8pip3Installationpip3installeasy-cdll
python3Usageimportezdlllib=ezdll.cstyles.Cdll('./libxxx.so')raw_data={'a':[1,],'b':[2,3],...}results=lib.call_function('api',raw_data)
Package: easycfg
Let's work with a config files easy!UsageFast example:config.ymlservers:-host:example1.comlogin:login1password:password1-host:example2.comlogin:login2password:password2-host:example3.comlogin:login3password:password3env:prod>>>fromeasycfgimportConfig>>>cfg=Config('config.yml')>>>cfg.servers[{'host':'example1.com','login':'login1','password':'password1'},{'host':'example2.com','login':'login2','password':'password2'},{'host':'example3.com','login':'login3','password':'password3'}]>>>cfg.servers[2]{'host':'example3.com','login':'login3','password':'password3'}>>>cfg.servers[:2][{'host':'example1.com','login':'login1','password':'password1'},{'host':'example2.com','login':'login2','password':'password2'}]>>>cfg.servers.login['login1','login2','login3']easycfg supports json and yaml formats now
Package: easychart
easycharthighchartsmeets python in yourJupyternotebookGetting startedInstalling easychart is easy with pippip install easychartOpen a new Jupyter notebookimporteasychartchart=easychart.new("column")chart.title.text="France Olympic medals",chart.subtitle.text="by year and by medal class"chart.yAxis.title.text="medals"chart.categories=["Gold","Silver","Bronze"]chart.plot([7,16,18],name=2008)chart.plot([11,11,13],name=2012)chartDocumentationComplete documentation is hosted onread the docs. Have a look at one of the25+ example charts.
Package: easycharts
Easily create data visualization of static or streaming dataGet StartedpipinstalleasychartsCreate EasyCharts Server# charts.pyfromfastapiimportFastAPIfromeasychartsimportChartServerserver=FastAPI()@server.on_event('startup')asyncdefsetup():server.charts=awaitChartServer.create(server,charts_db="test")awaitserver.charts.create_dataset("test",labels=['a','b','c','d'],dataset=[1,2,3,4])Start Serveruvicorn--host0.0.0.0--port0.0.0.0charts:serverUpdate Data via APIIn a separate window, access the OpenAPI docs to demonstrate dynanimc updates to the graphhttp://0.0.0.0:8220/docsLineBarAPISReal World Usage - Resource Monitoringimportdatetime,psutilimportasynciofromfastapiimportFastAPIfromeasychartsimportChartServerfromeasyscheduleimportEasySchedulerscheduler=EasyScheduler()server=FastAPI()every_minute='* * * * *'@server.on_event('startup')asyncdefsetup():asyncio.create_task(scheduler.start())server.charts=awaitChartServer.create(server,charts_db="charts_database",chart_prefix='/mycharts')awaitserver.charts.create_dataset("test",labels=['a','b','c','d'],dataset=[1,2,3,4])# set initial sync timelabel=datetime.datetime.now().isoformat()[11:19]awaitserver.charts.create_dataset('cpu',labels=[label],dataset=[psutil.cpu_percent()])awaitserver.charts.create_dataset('mem',labels=[label],dataset=[psutil.virtual_memory().percent])@scheduler(schedule=every_minute)asyncdefresource_monitor():time_now=datetime.datetime.now().isoformat()[11:19]# updates CPU & MEM datasets with current timeawaitserver.charts.update_dataset('cpu',label=time_now,data=psutil.cpu_percent())awaitserver.charts.update_dataset('mem',label=time_now,data=psutil.virtual_memory().percent)
Package: easychatgpt
EasyChatGPTAn unofficial yet elegant interface of the ChatGPT API using browser automation that bypasses cloudflare detection and recaptchas.FeaturesBypass Cloudflare's anti-bot protection usingundetected_chromedriverComplementary and fast Audio Recaptcha solver using thepypasserlibrary.InstallationYou mustinstallffmpeg and ffprobe on your machine before running.Install On WindowsInstall On LinuxInstall On MacOSInstall the official easyChatGPT packagepipinstalleasychatgptEnvironment VariablesTo run this project, you will need to add the following environment variables to your .env fileOPENAI_EMAILOPENAI_PASSWORDCopy the .env file and put in your openai email and passwordcp .env.example .envUsage / DemoSimple UsagefromeasychatgptimportChatClientimportosfromdotenvimportload_dotenvload_dotenv()OPENAI_EMAIL=os.getenv("OPENAI_EMAIL")OPENAI_PASSWORD=os.getenv("OPENAI_PASSWORD")chat=ChatClient(OPENAI_EMAIL,OPENAI_PASSWORD)answer=chat.interact("Introduce your self")print(answer)More examples to look atAcknowledgementChatGPT_SeleniumPyPasser