Saravanan666/pypi-org huggingface dataset:
Package: mergify-cli
Mergify CLI - Stacked Pull Request AutomationIntroductionMergify CLI is a powerful tool designed to simplify and automate the creation and management of stacked pull requests on GitHub.Before diving into its functionalities, let's grasp the concept of stacked pull requests and why they matter in thedocumentation.DocumentationSetting up stacked PR automation in a repositoryCreating and managing your PR stackContributingWe welcome and appreciate contributions from the open-source community to make this project better. Whether you're a developer, designer, tester, or just someone with a good idea, we encourage you to get involved.How toFork the repository to your GitHub account.Clone your forked repository to your local machine.gitclonehttps://github.com/your-username/your-fork.gitPush changes to your fork and submit your pull requests.
Package: meringue
MeringueFull documentation for the project is available atdd.github.io/Meringue.Package with various functional (such as mixins, form utils, upload handlers and other) for Django Framework.This library is a set of various functionality that I use from project to project.The main task of this package is to clean up this functionality, test it, and also organize the documentation so that colleagues can understand how and what works.However, if someone decides to use this functionality in their project, and even more so to add functionality or change the implementation to a more correct, beautiful or understandable one, I will only be happy, do not worry and feel free to write to me bymail, create anissueorpull requestongithub.RoadmapAdding new functionality. Can change.drfserializer serializer for automatic form generation on the front when working through rest api. (An npm package onvuejswill also be developed generating form based on response from api).Authorization backend for authorization by a pair of email and password.Functionality for working with images.Image editor like easy_thumbnails.A field for the drf serializer that returns a set of images (for example, a standard image and a double-sized image for a retina screen), as well as in different formats (for example, in the original format and in webp).Functionality similar to that described in the previous paragraph only for video.Functionality for loading private files available throughnginx internal.ContributingUse Git Flow (readhereandhere) to resolve the versioningLinter with aRuffFormatter with aBlackLint commit withGitlintandConventional CommitsDocumentation withmkdocsandmkdocs-materialTesting local withhatchTesting in CI/CD on pushAddmypy???
Package: meris-checker
meris-checkermeris-checker is a command which helps you determine whether or not your IP addresses are listed in the Qrator Labs database of meris botnet IPs.InstallationUse the package managerpipto install meris-checker.pipinstallmeris-checkerUsageThere are two ways to use this script. The first is to create a file namedips.txt:$echo127.0.0.1>>ips.txt
$echo127.0.0.0/29>>ips.txt
$poetryrunmeris-checker
IP127.0.0.1issafe,whew!
IP127.0.0.0issafe,whew!
IP127.0.0.1issafe,whew!
IP127.0.0.2issafe,whew!
IP127.0.0.3issafe,whew!
IP127.0.0.4issafe,whew!
IP127.0.0.5issafe,whew!
IP127.0.0.6issafe,whew!
IP127.0.0.7issafe,whew!The second is to specify the IPs one-at-a-time on the command line:$poetryrunmeris-checker127.0.0.1127.0.0.0/30
IP127.0.0.1issafe,whew!
IP127.0.0.0issafe,whew!
IP127.0.0.1issafe,whew!
IP127.0.0.2issafe,whew!
IP127.0.0.3issafe,whew!This should work with any valid IPv4/IPv6 address or subnet. However, please be aware that it hits the Qrator API for each address in the subnet individually, so you should probably limit your lookups to narrow ranges that you actually own.The script is rate-limited to 1 IP query per second, so a /24 will take ~6 minutes to run.ContributingPatches are welcome. Please emaildon@bloono.comLicenseMIT
Package: meritous
MeritousMeritous is an absurdly simply approach to "Models" in Python.It came about because there is no modern, framework agnostic approach to modelling data.On the face of it the usage is very trivial; but the intent is that Meritous is a building block for more complex data models. Essentially, it provides a simple Model class which can contain data to be used in Python applications. It then sets out a standard practice for transforming that data for storage or transport.DocumentationInstallationpipinstallmeritousBasic UsagefrommeritousimportModelfrommeritous.propertiesimportUUIDProperty,StrProperty,DatePropertyfromdatetimeimportdateclassEventModel(Model):_schema={"id":UUID4Property(),"title":StrProperty(),"date":DateProperty(),"description":StrProperty(),}event=EventModel()event.title='Sample Event'event.date=date.fromisoformat('2023-01-10')print(event.id)print(event.title)print(event.date)
Package: meritrank-python
Copyright: Vadim Bulavintsev (GPL v2)MeritRank Python implementationThis repository contains the Python implementation for the incremental version of the MeritRank
scoring system (which is inspired by personalized PageRank).Usage examplefrommeritrank_python.rankimportIncrementalMeritRankpr=IncrementalMeritRank()pr.add_edge(0,1,)pr.add_edge(0,2,weight=0.5)pr.add_edge(1,2,weight=2.0)# Initalize calculating rank from the standpoint of node "0"pr.calculate(0)# Get the score for node "1" from the standpoint of the node "0"print(pr.get_node_score(0,1))# Add another edge: note that the scores are automatically recalculatedpr.add_edge(2,1,weight=3.0)print(pr.get_node_score(0,1))Known issues and limitationsThe bookkeeping algorithm for the incremental
addition-deletion of edges is pretty complex.Initial tests show its results are equivalent to non-incremental version,
at least for all possible transitions between all possible meaningful 3- and 4-nodes graphs.
Nonetheless, it is hard to predict how the thing will work in real-life scenarios.
Package: merk-api
# merk-api-pyMerk API Python client[![PyPI version](https://badge.fury.io/py/merk-api.svg)](https://badge.fury.io/py/merk-api)[![Build Status](https://travis-ci.org/impercz/merk-api-py.svg?branch=master)](https://travis-ci.org/impercz/merk-api-py)## Installationpip install merk-api## Usage```pythonfrom merkapi import Api# by default client uses messagepack, but you can use less efficient jsona = Api('your_authentication_token', content_type='application/msgpack')# get your subscriptions info (cz, sk)r = a.subscriptions# print returned dictprint(r.encdata)# you can also access standard urllib3 responseprint(r.data, r.status)# implemented API calls# suggest by 'regno', 'email' or 'name'a.suggest(query, by, country_code)# get full company data by regnoa.company(regno, country_code)# multi get full company dataa.companies(regnos, country_code)# get and cache enumsa.get_enums(country_code)```## Run testsClient is tested in python 2.7 and 3.5. You can run tests in your environment:cd project/rootpy.testor via tox:cd project/roottox
Package: merkava
A fast ordered NoSQL database.Documentation|GitHubNoteThis is still inactivedevelopment. Things will change. If you are interested in helping out, or would like to see any particular features added, let me know.What is MerkavaDB?A very fast, and lightweight DB for storing ordered data. The order it comes out is the order that it went in. The API is meant to be small and without bloated queries. Consequently, there is a limited set of queries to be made since the primary tool is getting objects in and out of storage in a specific order.So, why would I use it?Because it is fast. And it is simple.Let’s say, for example, you are building an application. As a part of your application, you want to have a chat or a news feed. The data will ALWAYS be displayed in the same order. Well, you can persist your data objects and feel condifent that they will always be in the same order, no matter what.MerkavaDB stores data in a similar format to JSON. So, it is schemaless and will allow you to store data in whatever format you need.How do I use it?By making HTTP calls to the database server. All you need to do is specify a “channel” and some data.What kind of data?nullsbooleansintegersfloatsstringsarrays/listsmaps/dictsBasically anything you would pass by JSON.What is a channel?A channel is a division of data. All data is stored in a sequential order given the channel that it is in. For example, it could be a single chat room or news feed.Supported OperationsHTTP POST /<channel>/- createHTTP GET/<channel>/<id>/- retrieve a single recordHTTP PATCH/<channel>/<id>/- update a recordHTTP DELETE/<channel>/<id>/- delete a recordHTTP PUT/<channel>/<id>/- restore a deleted recordHTTP GET/<channel>/recent/<X>- retrieve an array of the X most recent recordsRoadmapDrivers for: Python, NodeJS, JavaTest coverageDocumentationClean up utilitiesUser interfaceDebian installerSingle script installerConfiguration optionsExamplesLoggingCurrent Versionversion 0.2.0DocumentationThe full documentation is athttp://merkava.rtfd.org.History0.2.0 (2017-09-25)History and tooling scriptsFunctioning API with Sanic serverVersioning tools0.1.0 (2017-09-24)First release on PyPI.
Package: merkle-patricia-trie
CreditsThis is a fork ofeth_mptpackage with minor improvements.Modified Merkle Paticia TrieMPT is the data structure used inEthereumas a cryptographically authenticated key-value data storage.This library is a Python implementation of Modified Merkle Patrica Trie with a very simple interface.Examplestorage={}trie=MerklePatriciaTrie(storage)trie.update(b'do',b'verb')trie.update(b'dog',b'puppy')trie.update(b'doge',b'coin')trie.update(b'horse',b'stallion')old_root=trie.root()old_root_hash=trie.root_hash()print("Root hash is{}".format(old_root_hash.hex()))trie.delete(b'doge')print("New root hash is{}".format(trie.root_hash().hex()))trie_from_old_hash=MerklePatriciaTrie(storage,root=old_root)print(trie_from_old_hash.get(b'doge'))try:print(trie.get(b'doge'))exceptKeyError:print('Not accessible in a new trie.')InstallingInstall and update usingpip:pip install -U mercle_patricia_trie
Package: merkleproof
merkleproofBuild merkle trees, create merkle proofs, verify that the merkle root (hash root) can be reconstructed. The typical things you would do with a merkle tree.Creating merkle trees, merkle proofs and verifying their consistencySimple package aimed at learning to work with merkle trees, produce proofs, etc.Built to be able to generate proofs that can be used in tandem with Solidity contracts.Follows OpenZeppelin's practices regarding produced merkle trees and proof output.>>>tree=MerkleTree(["a","b"])>>>tree.root'fb8e20fc2e4c3f248c60c39bd652f3c1347298bb977b8b4d5903b85055620603'Work in progressNote that this is under development and should not be used outside of a developer setting.
Package: merkle-py
merkle-pyPython implementation of Merkle treeThis library defines my special implementation in Python of the notorious Merkle trees. Feel free to use it (with the appropriate credits).Other implementations include:Go,ScalaandTypeScript.Usage$pipinstallmerkle-pyHere are some simple examples of how it works:frommerklepyimportMerkleTree,MerkleTreeOptions,build_hash_function,SHA_256options1=MerkleTreeOptions(doubleHash=True,engine='sha-256',sort=True)tree1=MerkleTree(options1)# Build a tree from the raw dataproofs1=tree1.add_leaves(True,'1','2','3')root_hash=tree1.get_root_hash()assert(tree1.depth()==1)json=tree1.to_json()# Build another identical tree from the JSON of the first onetree2=tree_from(json)assert(tree1.size()==tree2.size())sha256=build_hash_function(SHA_256)assert(tree2.size()==proofs1[0].size)assert(tree2.validate_proof(proofs1[0],sha256('1'),root_hash)==True)# Enrich with new hashed dataproofs2=tree2.add_leaves(False,bytes.fromhex('1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef'),bytes.fromhex('abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789'))assert(tree2.size()==5)assert(tree2.depth()==2)# Because the size of the tree has changed, and so has the root hashassert(proofs1[0].to_string()!=proofs2[0].to_string()andtree2.validate_proof(proofs1[0],sha256('1'),root_hash)==False)Important noteAs you can see from the examples above, for a continuously growing Merkle tree, proofs may not work at all time. You may need either a new proof from the latest tree, or rebuild the old tree, hence thesizeattribute passed within theMerkleProofinstance. If you don't use a sorted tree and keep a record of the leaves' hashes in the order they were included in the tree, this allows you to rebuild the corresponding tree and therefore use any proof at any time.In other words, this implementation is either not made for a growing tree, or should take this behaviour into account when issuing and verifying proofs.Tests$gitclonehttps://github.com/cyrildever/merkle-trees.git$cdmerkle-trees/packages/py/$pipinstall-e.$python3-munittestdiscoverLicenseThis library is distributed under a MIT license.See theLICENSEfile.© 2022-2023 Cyril Dever. All rights reserved.
Package: merkleshare
A no-brainer pastebin on IPFS - think distributedhttp://sprunge.usWhy this if there’sipfs add?Good question!ipfs addcurrently doesn’t support showing a full link, let alonexclip-compatible output - the user has to select the hash, paste it in a browser
and manually add the rest of their preferred IPFS link format.Installationmerkleshareis available through PyPI:$pipinstallmerkleshareBut if you want, you can install it directly from the repo:$pipinstallgit+https://github.com/drozdziak1/merkleshareRequirementsIn order for MerkleShare to work, you need to bring up a local IPFS node usingipfs daemon.UsageA typical stdin pipe situation:$echo"Hello, world"|mersh-tgatewayhttps://ipfs.io/ipfs/QmaMLRsvmDRCezZe2iebcKWtEzKNjBaQfwcu7mcpdm8eY2How about some file input?$echo"Hello, friends.">file.txt$mershfile.txt/ipfs/QmZRyLRgWiXN2Zks6rjH5jPYQzbWj3BYTWERa9m7QQc3kWOr maybe you only need the hash? No problem:$echo"Rollin' with the hash\!"|mersh-thashQmWjZ4dF4brEPqjtWx2EqZbeAmcpHiCVkhAxJyi51TPJzhGot security needs? You’ll be happy to know that MerkleShare supports Fernet
encryption (via thecryptographymodule):$echo"Lizard people live at the edge of flat earth"|mersh-e/ipfs/QmcXM8gCqeJA2qjnVmFYkFFc2sMjDvT21p8UwGBwzWxva8/#fT7jn4eDJLgHcM3wva4KS4eUMyJ19zuxRJhy5Lp5xwZsVzA4Q6AzoEEEZxUt# `----------------------------------------------------------'#        Your data is guarded by a disposable secretIt’s not possible to reach your data without the secret, which is only present
in the link…$ipfscat/ipfs/QmcXM8gCqeJA2qjnVmFYkFFc2sMjDvT21p8UwGBwzWxva8gAAAAABaAMt-gZCub5HYjOXvGbNZP7GaBDJL1ViYFSX9LiWAZAVLK6_o5I2lO3Bq86yHEvmuq-iI179Ficnzwvxug--9_xKFwfXzmv6NUm9tIFf64ukMETuwhWKJJJh9ytmsPJZaRPyA…but if you do have it then retrieving your stuff with MerkleShare becomes
about as easy as it gets:$mersh-d/ipfs/QmcXM8gCqeJA2qjnVmFYkFFc2sMjDvT21p8UwGBwzWxva8/#fT7jn4eDJLgHcM3wva4KS4eUMyJ19zuxRJhy5Lp5xwZsVzA4Q6AzoEEEZxUtLizardpeopleliveattheedgeofflatEarthFeaturesRead fromstdinor a specified fileOnly the link gets printed tostdout, everything else isstderr-
effortlessly pipe it to your favourite clipboard manager!Seamless data encryptionOutput the link in the format you need:Regular:/ipfs/<hash>Gateway:https://ipfs.io/ipfs/<hash>- great for sharing links with non-IPFS friendsLocal:http://localhost:8080/ipfs/<hash>Bare:<hash>Optional static WebUI (Enabled with the-gflag)Planned FeaturesBuilt-in clipboard supportPure Python IPFS backend (oncepy-ipfsis ready)Binary blob support for WebUI uploadsHistoryMerkleShare started as an attempt to make IPFS more convenient and let the user
securely share whatever they need.
Package: merkletreepy
_   _     _
  _ __  ___ _ _| |_| |___| |_ _ _ ___ ___ _ __ _  _
 | '  \/ -_) '_| / / / -_)  _| '_/ -_) -_) '_ \ || |
 |_|_|_\___|_| |_\_\_\___|\__|_| \___\___| .__/\_, |
                                         |_|   |__/MerkleTree.pyA Python port of merkletreejs.:warning: Currently EXTREMELY unstable and doesn't work for many cases yet. :warning:Installationpip install merkletreepyWorking Code Examplessha256frommerkletreepyimportMerkleTreeimporthashlibdefsha256(x):returnhashlib.sha256(x).digest()leaves=[sha256(leaf.encode())forleafin"abc"]tree=MerkleTree(leaves,sha256)root=tree.get_root()leaf=sha256("a".encode())bad_leaf=sha256("x".encode())proof=tree.get_proof(leaf)tree.verify(proof,leaf,root)# returns Truetree.verify(proof,bad_leaf,root)# returns False
Package: merkle-tree-stream
merkle-tree-streamA stream that generates a merkle tree based on the incoming dataA hash tree or merkle tree is a tree in which every leaf node is labelled
with the hash of a data block and every non-leaf node is labelled with the
cryptographic hash of the labels of its child nodes. Merkle trees in Dat are
specialized flat trees that contain the content of the archives.Install$pipinstallmerkle-tree-streamExampleimporthashlibdef_leaf(node,roots=None):returnhashlib.sha256(node.data).digest()def_parent(first,second):sha256=hashlib.sha256()sha256.update(first.data)sha256.update(second.data)returnsha256.digest()merkle=MerkleTreeGenerator(leaf=leaf,parent=parent)merkle.write(b"a")merkle.write(b"b")assertlen(merkle)==2+1
Package: merkury
MerkuryMerkuryis a command line utility to run Python scripts and renderstaticHTML or Markdown reports with code and produced output. It uses standard.pyfiles as input - any valid script that can be run from command line, can also be turned into a report.Example Python reportDocumentationIt's a lightweight alternative to tools such asjupyterandpapermill. While these have their advantages (andproblems), when everything you need is to generate a report from a data analysis script, they might be an overkill. This project is meant to address that scenario.Non-goals of the project:interactive code execution in the browser (seejupyter),generating data apps that require backend server (see e.g.dash),convertinganyinput into static HTML (see e.g.nikola).NOTE: this is an early experimental project, stuff might break and changeInstallationpip3 install merkuryUsage$ merkury -h
merkury

Usage:
    merkury [options] <script>

Options:
    -h --help                       Show this screen.
    -o <file>, --output <file>      Specify report file (if missing, <script_name>_<date>).
    -f <format>, --format <format>  Specify report format: html (default), md.
    -a <author>, --author <author>  Specify author (if missing, user name).
    -t <title>, --title <title>     Specify report title (if missing, script file name)
    -c, --toc                       Generate Table of Contents
    -v, --version                   Show version and exit.PDF reportsIt is also possible to obtain PDF reports with usage of additional conversion tools (e.g.,pandoc). For example:merkury -o /dev/stdout -f md <your_script> | pandoc --highlight-style=tango -t pdf -o report.pdfNote, in case your report file contains raw html chunks (such as plots or images), you will need usewkhtmltopdfpdf engine.Formatting and plotsIn produced report, code will be broken into sections. Each section ends with a statement printing some output (e.g.,print()). You can give titles to each section by placingmagic comment#TITLE <your_section_title>after line that produces output.PythonWhen it comes to report formatting, there are 3 types of outputs in a Python script: Standard<code>block (default), HTML, or Markdown.By defaultmerkurytreats any output as standard code print and puts it into<code>blocks. If your output is actually HTML or Markdown, you need to indicate that by placing amagic commentafter print statement in your script.HTMLYou need to put a comment#HTMLafter a line that outputs raw HTML. For example:print(pandas_df.to_html(border=0))
#HTMLIn addition to writing HTML by hand or using libraries that allow formatting output as HTML,merkuryprovidesutility functionsto format plots from common libraries. Seeplotting docsfor details.MarkdownIt's also possible to render text formatted in markdown. You need to put magic comment#MARKDOWNafter print statement.For example:print("""
# I'm a markdown header

List:

* l1
* l2

""")
#MARKDOWNAcknowledgementsReports styling is made possible by great frontend libspicoandprismSO discussion that inspired this projectpyreport- similar but long abandoned project
Package: merlict
More light than you can handle! Also: This is in beta state. Don’t judge me!
Merlict would not exist without the author’s past and present affiliations:Max-Planck-Institute for Nuclear Physics,
Saupfercheckweg 1, 69117 Heidelberg, GermanyInstitute for Particle Physics and Astrophysics,
ETH-Zurich, Otto-Stern-Weg 5, 8093 Zurich, SwitzerlandExperimental Physics Vb, Astroparticle Physics,
TU-Dortmund, Otto-Hahn-Str. 4a, 44227 Dortmund, GermanyInstallpipinstallmerlictMinimal exampleLoad an existing sceneryimportmerlictimportpkg_resourcesimportossceneryPy=merlict.scenery.read_tar(path=pkg_resources.resource_filename("merlict",os.path.join("tests","resources","segmented_reflector.tar"),),)mli=merlict.compile(sceneryPy)mli.view()Query the intersection of rays with the sceneryrays=merlict.ray.init(size=1)# only one ray for demonstrationrays["support.x"]=0.3rays["support.y"]=0.1rays["support.z"]=2.3rays["direction.x"]=0rays["direction.y"]=0rays["direction.z"]=-1hits,intersections=mli.query_intersectionSurfaceNormal(rays)ifhits[0]:print("The ray intersects with the surface")print("of (object, face): ({:d},{:d}),".format(intersections[0]["geometry_id.robj"],intersections[0]["geometry_id.face"],))print("in distance:{:f},".format(intersections[0]["distance_of_ray"]))print("at position: ({:f},{:f},{:f}),".format(intersections[0]["position.x"],intersections[0]["position.y"],intersections[0]["position.z"],))print("and with surface-normal: ({:f},{:f},{:f}).".format(intersections[0]["surface_normal.x"],intersections[0]["surface_normal.y"],intersections[0]["surface_normal.z"],))print("With respect to the frame ""of the intersected object the ray intersected")print("at position: ({:f},{:f},{:f}),".format(intersections[0]["position_local.x"],intersections[0]["position_local.y"],intersections[0]["position_local.z"],))print("and with surface-normal: ({:f},{:f},{:f}).".format(intersections[0]["surface_normal_local.x"],intersections[0]["surface_normal_local.y"],intersections[0]["surface_normal_local.z"],))else:print("The ray does not intersect with any surface.")will yieldThe ray intersects with the surface
of (object, face): (28, 35),
in distance: 2.287463,
at position: (0.300000, 0.100000, 0.012537),
and with surface-normal: (-0.075000, -0.025000, 0.996870).
With respect to the frame of the intersected object the ray intersected
at position: (0.009082, 0.044013, 0.000270),
and with surface-normal: (-0.002270, -0.011003, 0.999937).
Package: merlin-core
Merlin CoreThe Merlin Core library provides the core utilities forNVIDIA Merlinlibraries
likeNVTabular,Transformers4RecandMerlin Models.
For example, themerlin.io.Datasetandmerin.schema.Schemaclasses are fundamental for working with data and building recommender systems with Merlin.InstallationInstalling Merlin Core Using Pippipinstallmerlin-coreInstalling Merlin Core Using Condacondainstall-cnvidia-crapidsai-cnumba-cconda-forgemerlin-corepython=3.7cudatoolkit=11.2Running Merlin Core with DockerAs a fundamental library for Merlin, Merlin Core is included in the Merlin Containers.Refer to theMerlin Containersdocumentation page for information about the Merlin container names, URLs to the container images on the NVIDIA GPU Cloud catalog, and key Merlin components.Feedback and SupportTo report bugs or get help, please open an issue on theGitHub repo.