Saravanan666/pypi-org huggingface dataset:
Package: manicrypt
WELCOME TO MANICRYPTmanicrypt is a simple and fun cryptography packagepip intall manicrypthow to import?frommanicryptimportmcryptfunctions areFunctionDescriptionmencrypt(string,key)encrypt the string with an key(integer)mdecrypt(string,key)decrypt the string with an key(integer)imgwrite(img, msg)hides the msg(message) into the img(picture) in binaryimgread(img)display the hidden message img(picture) in binarymapenc(string)encrypt maps a value to srtingmapdec(string)decrypt maps a value to string###samplemencrypt()frommanicryptimportmcryptx=mcrypt.mencrypt('mani',2)print(x)output
'ocpk'mdecrypt()frommanicryptimportmcryptx=mcrypt.mdecrypt('ocpk',2)print(x)output
'mani'imgwrite()frommanicryptimportmcryptmcrypt.imgwrite('your image path or file_name.extention','your message')imgread()frommanicryptimportmcryptmcrypt.imgread('your image path or file_name.extention')mapenc()frommanicryptimportmcryptmcrypt.mapenc('your text')mapdec()frommanicryptimportmcryptmcrypt.mapdec('your text')
Package: manic-xai
\n# Manic: A Genetic Algorithm-based Metaheuristic Approach for Nature-Inspired Aggregation of CounterfactualsTable of ContentsIntroductionInstallationUsageDocker InstructionsCitationAuthorContactLicenseIntroductionManic is a Python package that provides a genetic algorithm-based metaheuristic approach for aggregating counterfactual explanations. It implements a nature-inspired optimization technique to generate counterfactuals that explain the disagreement between different explainers. The goal is to find counterfactual instances that are both diverse and informative to enhance the interpretability of machine learning models.InstallationTo install Manic, use the following pip3 command:pip3installmanic-xaiUsageYou can use Manic in your Python code as follows:frommanicimportManic# Define your data_instance, base_counterfactuals, categorical_features, immutable_features, feature_ranges, data, and predict_fnmanic_instance=Manic(data_instance,base_counterfactuals,categorical_features,immutable_features,feature_ranges,data,predict_fn)# Generate counterfactualscounterfactuals=manic_instance.generate_counterfactuals()Docker InstructionsTo run Manic using Docker, follow these steps:Build the Docker image:dockerbuild-tmanic.Run the Docker containerdockerrun-v/path/to/your/data:/data-itmanicpython3your_script.pyCitationIf you use the Manic package in your research or work and find it helpful, we kindly request that you cite it using the following BibTeX entry:@software{manic,author={Craig Pirie},title={Manic: A Genetic Algorithm-based Metaheuristic Approach for Nature-Inspired Aggregation of Counterfactuals},year={2023},publisher={GitHub},journal={GitHub repository},howpublished={\url{https://github.com/your-username/manic}},}We appreciate your support and acknowledgment of our work.ContactFor any inquiries or collaborations, please contact Craig Pirie atc.pirie11@rgu.ac.uk.LicenseThis project is licensed under the MIT License. See the LICENSE file for details.ContributionsContributions to the Manic package are always welcome. If you find any issues or have ideas for improvements, please feel free to open an issue or submit a pull request on the GitHub repository. Together, we can make Manic better for everyone.ChangelogFor updates and a history of changes to the Manic package, please refer to the Changelog.
Package: maniera
🎹 Manieraosu! Mania PP calculator written in Python.Written with ❤️ byNice Aesthetics. Based onompp-webInstallation:pipinstallmanieraManiera is supposed to work on Python 3+ versionsExample Usage:frommaniera.calculatorimportManiera# 64 = DT (https://github.com/ppy/osu-api/wiki#mods)# Maniera(path, modnum, score)calc=Maniera('beatmap.osu',64,800000)calc.calculate()print(f"{round(calc.pp,2)}PP -{round(calc.sr,2)}Stars")Output:564.36PP-8.16Stars
Package: manifest
Manifest: Clean Web Interface to WarehouseManifest is a BSD Licensed Web Interface and Client to a Warehouse index.Manifest presents a clean and user friendly interface to browse and search the
data stored in Warehouse. It features a simple human friendly design and has
several useful features to find, evaluate, and track various projects for use
with Python.Manifest is part of the Crate project, a set of applications, tools, and libraries
for creating, distributing, and installing Python packages in a secure, efficient,
and reliable way.ResourcesDocumentationBug TrackerCodeIRC(irc.freenode.net, #crate)ContributeCheck for open issues or open a new issue to start a discussion around a feature
idea or a bug.Forkthe repositoryon GitHub and create a branch off of the master branch
to make your changes too.Write a test which shows that the bug was fixed or that the feature works as expected.Send a pull request and bug the maintainer until it gets merged and published.
Package: manifest-checker
The manifest checker is a command line tool for the creation and checking of manifest files. Typically it is intended to be
used to confirm that a directory structure can be deployed/copied in a consistent way from a source to a target.There is a two step process for confirming consistency :A manifest is created (using themanifest createcommand). This command scans the directory tree, looking for known source code files. A manifest file is created, which is a simple text file listing every source code file found, and a checksum/hash for each file - thus recording a reasonable mark of the file contents.Following deployment of the directory tree (including the manifest file), the manifest can be checked against the deployed copy, by executing themanifest checkcommand. This command scans the directory tree, looking for the source code files, and checking the found files against the manifest file is created. During this check 3 types of exception can be reported :mismatched files - where the signature of the deployed file is not the same as that in the manifest filemissing files - where files are listed in the manifest but not in the deployed directory treeextra files - where files exist in the deployed directory tree but don’t exist in the manifest fileThe toolset was initially designed to check a deployment of a Django based website, and therefore many of the defaults are set for DJango projects including : The source files to look for, and also which sub-directories to ignore. All of these can be overidden by command line options, and there are early plans for a configuration file as well.WarningVersions early than 0.0.2rc6 incorrectly ignores missing files - this has now been fixed.Links :Full DocumentationSource Code
Package: manifester
ManifesterRed Hat subscriptions made manifest.DescriptionManifester is a tool that uses the Red Hat Subscription Management (RHSM) API to dynamically create and populate subscription allocations and to export subscription manifests for use by Red Hat Satellite and other Red Hat products.InstallationClone this repository:git clone https://github.com/SatelliteQE/manifesterCopy and rename themanifester_settings.yaml.examplefile tomanifester_settings.yaml.An offline token is required to generate an offline token the temporary access tokens used for authenticating to the RHSM API. Either use an existing offline token for an RHSM account or generate one using the instructions in the articleGetting started with Red Hat APIs. Add the offline token tomanifester_settings.yaml.From the base directory of the local clone of the manifest repository, install the project to a local Python environment:pip install .ConfigurationThemanifester_settings.yamlfile is used to configure manifester viaDynaConf.Multiple types of manifests can be configured in themanifest_categorysection ofmanifester_settings.yaml. These types can be differentiated based on the Satellite version of the subscription allocation, the names and quantities of the subscriptions to be added to the manifest, and whetherSimple Content Accessis enabled on the manifest.The value of thenamesetting for each subscription in a manifest must exactly match the name of a subscription available in the account which was used to generate the offline token. One method for determining the subscription names available in an account is to register a system to RHSM and then runsubscription manager list --availableon that system. A planned future feature of Manifester is a CLI command that will return a list of available subscriptions.CLI UsageCurrently, the only action supported by the manifester CLI is generating a manifest using theget-manifestsubcommand:manifester get-manifest --manifest-category <manifest category name> --allocation_name <allocation name>Two options are available for this subcommand. The--manifest_categoryoption is required and must match one of the manifest categories defined inmanifester_settings.yaml. The--allocation_nameoption specifies the name of the subscription allocation in RHSM and is also used in the file name of the manifest archive exported by Manifester. If no value is supplied for--allocation_name, a string of 10 random alphabetic characters will be used for the allocation name.
Package: manifest_generator
This package contains a utility to generate the HTML5 application cache manifest file.   Running it multiple times only changes the manifest if the manifest contents or contents of files listed in the cache change.Requires--------glob2 - https://github.com/miracle2k/python-glob2/Usage-----some exaples:manifest_gen --output cache.manifest --cache "js/**/*.js" --cache "css/**/*" --nocache dontcache.js --network counter.html --fallback fallback.htmlmanifest_gen -o cache.manifest -c "js/**/*.js" -c "css/**/*" -nc dontcache.js -n counter.html -f fallback.htmlmanifest_gen -hmanifest_gen --doc_root C:/Users/p20/projects/rc_flug_log_client/android/workspace/rc_flug_log_phonegap/assets/www --cache "C:/Users/p20/projects/rc_flug_log_client/android/workspace/rc_flug_log_phonegap/assets/www/**/*" --url /static/mobileTests-----To run the unit tests (python >= 2.7):python -m unittest discover
Package: manifestoo
ManifestooA tool to reason aboutOdooaddons manifests.InstallationUsingpipx(recommended):pipx install manifestooUsingpip:pip install --user manifestooFeaturesManifestoo is a command line tool that provides the following features:listing addons,listing direct and transitive dependencies of selected addons,listing direct and transitive co-dependencies of selected addons,listing core Odoo CE and EE addons,listing external dependencies,listing missing dependencies,displaying the dependency tree,checking license compatibility,checking development status compatibility.For a full list of commands an options, runmanifestoo --help.For more information, read thedocumentation.Quick startLet's create a directory (/tmp/myaddons) containing addonsa,bandc,
whereadepends onbandc, andbandcrespectively depend on thecontactsandmailcore Odoo modules.Usingbashyou can do it like this:mkdir -p /tmp/myaddons/{a,b,c}echo '{"name": "A", "version": "14.0.1.0.0", "depends": ["b", "c"], "license": "GPL-3"}' > /tmp/myaddons/a/__manifest__.pyecho '{"name": "B", "version": "14.0.1.0.0", "depends": ["crm"], "license": "Other Proprietary"}' > /tmp/myaddons/b/__manifest__.pyecho '{"name": "C", "version": "14.0.1.0.0", "depends": ["mail"], "license": "LGPL-3"}' > /tmp/myaddons/c/__manifest__.pyThe manifestoolistcommand is useful to list all installable addons in a
directory. This can be useful to install them all at once, for instance.$manifestoo--select-addons-dir/tmp/myaddonslistabcThelist-dependscommand shows the direct dependencies. It is handy to
pre-install a database before running tests.$manifestoo-d/tmp/myaddonslist-depends--separator=,crm,mailThelist-codependscommand shows the transitive co-dependencies.
It is handy to know which modules are impacted by changes in selected modules.$manifestoo--addons-path/tmp/myaddons--selectalist-codepends--separator=,b,cYou can explore the dependency tree of modulealike this:$manifestoo--addons-path/tmp/myaddons--selectatreea (14.0.1.0.0)├── b (14.0.1.0.0)│   └── contacts (14.0+c)│       └── mail (14.0+c)│           ├── base_setup (14.0+c)│           │   └── web (14.0+c)│           ├── bus (14.0+c)│           │   └── web ⬆│           └── web_tour (14.0+c)│               └── web ⬆└── c (14.0.1.0.0)└── mail ⬆To check that licenses are compatibles, use thecheck-licensescommand:$moo-d/tmp/myaddonscheck-licensesa (GPL-3) depends on b (Other Proprietary)And much more... See the documentation for more information.
Package: manifestoo-core
Manifestoo CoreA library to reason aboutOdooaddons manifests.Installationpip install manifestoo-coreFeaturesmanifestoo_coreprovides the following features:Detect the Odoo series from an addon version.Information about core Odoo CE and EE addons for each Odoo version.Convert Odoo manifest metadata to Python Packaging Metadata.Read thedocumentationfor more information.Any part of the library that is not documented may change without notice.
Package: manifests
manifestsGenerate code from TOML manifests.InstallationIf you want to……use this tool in your project 💻You might simply install it with pip:pipinstallmanifestsIf you usePoetry, then run:poetryaddmanifests…contribute tomanifests🚀[!Note]
If you use Windows, it is highly recommended to complete the installation in the way presented below throughWSL2.Fork themanifests repositoryon GitHub.Install Poetry.Poetry is an amazing tool for managing dependencies & virtual environments, building packages and publishing them.
You might usepipxto install it globally (recommended):pipxinstallpoetryIf you encounter any problems, refer tothe official documentationfor the most up-to-date installation instructions.Be sure to have Python 3.8 installed—if you usepyenv, simply run:pyenvinstall3.8Clone your fork locally and install dependencies.gitclonehttps://github.com/your-username/manifestspath/to/manifestscdpath/to/manifests
poetryenvuse$(cat.python-version)poetryinstallNext up, simply activate the virtual environment and install pre-commit hooks:poetryshell
pre-commitinstall--hook-typepre-commit--hook-typepre-pushFor more information on how to contribute, check outCONTRIBUTING.md.Always happy to accept contributions! ❤️Legal info© Copyright by Bartosz Sławecki (@bswck).This software is licensed under the terms ofMIT License.
Package: manifoldco-signature
# python-manifoldco-signatureVerify signed HTTP requests from Manifold[Code of Conduct](./.github/CONDUCT.md) |[Contribution Guidelines](./.github/CONTRIBUTING.md)[![GitHub release](https://img.shields.io/github/tag/manifoldco/python-manifoldco-signature.svg?label=latest)](https://github.com/manifoldco/python-manifoldco-signature/releases)[![Travis](https://img.shields.io/travis/manifoldco/python-manifoldco-signature/master.svg)](https://travis-ci.org/manifoldco/python-manifoldco-signature)[![License](https://img.shields.io/badge/license-BSD-blue.svg)](./LICENSE.md)## Install```pip install manifoldco-signature```## Usage`manifoldco_signature` is built to be used with any HTTP handling framework.As such, you'll need to manually pass in request data in the format the`Verifier` expects.In particular, header names must be lowercased and hyphen delimited.If you're using a specific HTTP framework and would like native support for itincluded in this library, file an issue and let us know!```pythonimport manifoldco_signature as signatureverifier = signature.Verifier()valid =  verifier.Verify('PUT', '/v1/resources', {}, {'host': 'yourdomain.com'}, 'request body')if not valid:# return unauthorized```
Package: manifold-plotter
Visualizations of ManifoldsRegular GridInstallationpip install manifold-plotterUsageimportmanifold_plotterasmpimportmd_proasmdimportmatplotlib.pyplotaspltmygrid={"x_grid":5,"y_grid":4,"x_min":-10,"x_max":10,"y_min":-7.5,"y_max":7.5}# pointsP=md.get_meshgrid_points(**mygrid)# plot the nodesmp.plot_patches(P)plt.show()... should produce:CitationPlease cite following document if you use this python package:TODOImage source:https://www.pexels.com/photo/full-frame-shot-of-architectural-structure-248921/?download-size=640x480
Package: manifoldpy
manifoldpyTools for analyzingManifold Marketsdata. Currently has bindings for their API, and code for computing various accuracy metrics (Brier score, log score, calibration).Full Documentation.CalibrationThis is the most recent calibration graph for Manifold Markets. Markets with less than 4 unique traders are excluded. The calibration is generated from the probabilityhalfwaybetween market open and market close.InstallationThe package is on PyPI asmanifoldpy. It can be installed with:pip install manifoldpyHowever, you may want to install the most up-to-date version from github instead if you encounter any issues:pip install --upgrade https://github.com/vluzko/manifoldpy/tarball/mainBasic UsageGet a list containing every market:from manifoldpy import api
markets = api.get_all_markets()Manifold also has a POST API that lets you make/resolve/bet on markets. This requires you to have an API key (which you can generate on yourManifold profile page). Here's an example for making a bet on a binary market:from manifoldpy import api
# Amount to spend
amount = 100
# The ID of the market to bet on
contract_id = "8Lt9ZTHCPCK58gtn0Y8n"
# The outcome you want to bet on.
outcome = "YES"
api.make_bet(YOUR_API_KEY, amount, contract_id, outcome)If you want to avoid passing the key every time, you can instead create anAPIWrapperand use that:from manifoldpy import api
wrapper = api.APIWrapper(YOUR_API_KEY)
amount = 100
contract_id = "8Lt9ZTHCPCK58gtn0Y8n"
outcome = "YES"
wrapper.make_bet(amount, contract_id, outcome)Get a market's history of probabilities:from manifoldpy import api
market = api.get_market("market_id")
times, probabilities = market.probability_history()Generate a basic calibration graph:from manifoldpy import api, calibration
full_markets = api.get_full_markets()
binary = [
    m for m in full_markets if isinstance(m, api.BinaryMarket) and m.isResolved
]
df, histories = calibration.build_dataframe(binary)

yes_markets = df[df["resolution"] == "YES"]
no_markets = df[df["resolution"] == "NO"]

# Calibration at start
yes_probs = yes_markets["start"]
no_probs = no_markets["start"]
calibration = calibration.market_set_accuracy(yes_probs, no_probs)There are additional examples for analyzing market calibration in thescripts/directory.
Package: manila
Team and repository tagsMANILAYou have come across an OpenStack shared file system service.  It has
identified itself as “Manila.”  It was abstracted from the Cinder
project.Wiki:https://wiki.openstack.org/wiki/ManilaDeveloper docs:https://docs.openstack.org/manila/latest/Getting StartedIf you’d like to run from the master branch, you can clone the git repo:git clonehttps://opendev.org/openstack/manilaFor developer information please seeHACKING.rstYou can raise bugs herehttps://bugs.launchpad.net/manilaPython clienthttps://opendev.org/openstack/python-manilaclientDocumentation for the project can be found at:https://docs.openstack.org/manila/latest/Release notes for the project can be found at:https://docs.openstack.org/releasenotes/manila/Source for the project:https://opendev.org/openstack/manilaBugs:https://bugs.launchpad.net/manilaBlueprints:https://blueprints.launchpad.net/manilaDesign specifications are tracked at:https://specs.openstack.org/openstack/manila-specs/
Package: manila-tempest-plugin
This repository contains aTempesttest pluginto verify the
functionality of theOpenStack Shared File System Service, Manila.Seecontributor informationto learn more.Free software: Apache licenseDocumentation:https://docs.openstack.org/manila/latest/Release notes:https://docs.openstack.org/releasenotes/manila/Source:https://opendev.org/openstack/manila-tempest-pluginBugs:https://bugs.launchpad.net/manila
Package: manim3
IntroductionManim3 is a personal variant ofmanim. It aims at standardizing the project structure, improving rendering performance and providing additional features.InstallationManim3 runs on Python 3.12+ and OpenGL 4.3+.You may install manim3 directly viapipinstallmanim3to install the latest version distributed on pypi. Or, to catch up with the latest development and edit the source code, you may clone this repository viagitclonehttps://github.com/YishiMichael/manim3.gitcdmanim3
pipinstall-e.Additionally, there are other software dependencies to be installed:To generate video files, installffmpeg.To useTypstMobject(includingText,Math,Code), installtypst.Using manim3The directoryexamplesprovides several demo scenes. Under that directory, simply run any script viapy xxx.py. A window running a scene shall pop up.LicenseMIT license
Package: manim-automata
MANIM AUTOMATAA Manim plugin that allows you to generate scenes with Finite State Machines and their inputs. The plugin will automatically generate these animations with minimal setup from the user.This plugin has been funded by the University of Leeds.YOUTUBE VIDEO EXAMPLENotesThe manim-automata plugin currently relies on JFLAP files, future updates will enable the user to create automata without JFLAP.JFLAPis software for experimenting with formal languages topics.InstallationTo install manim-automata plugin run:pip install manim-automataTo see which version of manim-automata you have:manim-automataorpip listImportingTo use manim-automata in your project, you can:Addfrom manim_automata import *to your script.
Once manim-automata has been imported, you can use the ManimAutomata class to create automata.How To UseclassAutomaton(MovingCameraScene):defconstruct(self):manim_automaton=ManimAutomaton(xml_file='your_jff_file.jff')#Adjust camera frame to fit ManimAutomaton in sceneself.camera.frame_width=manim_automaton.width+10self.camera.frame_height=manim_automaton.height+10self.camera.frame.move_to(manim_automaton)#Create an mobject version of input for the manim_automatonautomaton_input=manim_automaton.construct_automaton_input("110011")#Position automaton_input on the screen to avoid overlapping.automaton_input.shift(LEFT*2)automaton_input.shift(UP*10)self.play(DrawBorderThenFill(manim_automaton),FadeIn(automaton_input))# Play all the animations generate from .play_string()forsequenceinmanim_automaton.play_string(automaton_input):forstepinsequence:self.play(step,run_time=1)To run the code and generate the video, run:manim -pql <name_of_script.py> Automatonrun with -pqh instead of -pql to have highquality versionExamplesThe Github page for this plugin has a directory called manim_automata_examples. You can download these and play around with them.You can run each file using these commands:manim -pql examples.py FiniteStateAutomatonExamplemanim -pql examples.py NonFiniteStateAutomatonExamplemanim -pql examples.py PushDownAutomatonExampleWriting Custom AnimationsCreate a new file called custom_manim_animations.py (can be called anything).
In this file write:importManimfrommanim_automataimportManimAnimationsclassCustomManimAnimations(ManimAnimations):def__init__(self)->None:super().__init__()In your manim-automaton file create an instance of your new custom manim animations class, like so:importManimfrom.custom_manim_animationsimportCustomManimAnimationsclassAutomaton(MovingCameraScene):defconstruct(self):manim_animations_instance=CustomManimAnimations()manim_automaton=ManimAutomaton(xml_file='example_machine.jff',manim_animations=manim_animations_instance)...Now that everything is setup, you'll be able to override the methods in ManimAnimations in your own class.
Go to the github repository of this project, then to custom_animations_help to find a file that has all the animation methods that can be overriden.