Saravanan666/pypi-org huggingface dataset:
Package: memv-package-nhunh
EnvsPython 3.8GuideTo monitor memory usage in a specific time and visualize it in a graph, you can use a combination of tools and techniques as follows:Use a system monitoring tool such as htop, top, or glances to track memory usage in real-time. These tools can display information about CPU, memory, disk usage, and network traffic in a user-friendly interface.For a more detailed look at memory usage over time, use a command-line utility such as psrecord or pidstat to capture memory usage data at regular intervals. You can specify the time interval and duration for data collection.Save the output of the monitoring tool to a file for further processing and use a Python script to analyze and visualize the collected data. Use a Python library such as matplotlib or seaborn to create a memory usage graph with the collected data.Optionally, you can set up a continuous monitoring process using a task scheduler such as cron to capture memory usage data regularly and automate the data collection and analysis process.Here is an example Python script to plot memory usage data collected using psrecord:import matplotlib.pyplot as plt
import numpy as npLoad data from filedata = np.loadtxt('memory-usage.txt')Extract time and memory usage datatime = data[:, 0]
memory = data[:, 1] / 1024 # Convert to MB for readabilityPlot the data using matplotlibfig, ax = plt.subplots()
ax.plot(time, memory)
ax.set(title='Memory Usage', xlabel='Time (s)', ylabel='Memory Usage (MB)')Show the plotplt.show()
Note: The above script assumes that the memory-usage.txt file contains two columns of data: time in seconds and memory usage in bytes. You may need to adjust the script according to the format of the data captured by your monitoring tool
Package: memx
 MemXA Python Library to Manipulate macOS Processes.Example usage:from MemX import *

mx = Process("assaultcube")
base = Module(mx, "assaultcube").BaseAddress

s = mx.read_longlong(base + 0x1D9EF0)
healthAddr = mx.read_longlong(s) + 0x418

print(f"Health value: {mx.read_int(healthAddr)}")This program reads the health value from a process namedassaultcube.
Package: menagerie
menagerie- (n.) a place where animals are kept and trained especially for exhibitionA ZooKeeper-backed Django settings holder.Basic UsageThemenagerie.configurehelper function provides a method to bootstrap your
Django settings using the settings already available by normal methods (via theDJANGO_SETTINGS_MODULEenvironment variable), but uses the settings present
in ZooKeeper to override these defaults.To configure your application,Add aZOOKEEPER_HOSTSsetting to your Django settings file(s) that
includes the network addresses of the ZooKeeper ensemble members to connect
to as a list or tuple. For example:ZOOKEEPER_HOSTS=('zookeeper-1.local','zookeeper-2.local')To bind the ZooKeeper client to a namespace other than the root namespace,
add aZOOKEEPER_SETTINGS_NAMESPACEsetting containing the namespace.Add the following to the entry point(s) to your application (e.g.manage.py) before accessing any attributes ofdjango.conf.settings:importmenageriemenagerie.configure()It may be helpful to configure your logging to outputDEBUG-level
messages for themenagerienamespace to track down any errors you may
encounter when configuring your application.StorageThe settings storage is designed to be as simple as possible, and only uses the
nodes within a single tree to represent all settings.Trees are not traversed recursively – all settings must be stored as the
direct children of a shared root node, which defaults to/or the root of
your ZooKeeper cluster/client namespace.For example, the following tree of node names and values in ZooKeeper:/DEBUG: true
/INTERNAL_IPS: ['127.0.0.1', '192.168.0.1']…would yield the following settings:settings.DEBUG == True
settings.INTERNAL_IPS == ['127.0.0.1', '192.168.0.1']The deserializer doesn’t do any sort of merging of complex types such as
mappings or sequences – either the values read from the ZooKeeper node data
will be returned, or the default value if no value exists in the ZooKeeper
tree.Setting names that are valid as ZooKeeper node names but have language-specific
semantics in Python (for example, names containing the.or-characters) may still be used, but will need to be accessed usinggetattron the settings holder, like so:getattr(settings,'MY-SPECIAL-SETTING')Running TestsThe test suite can be run withmake test.The suite requires a working ZooKeeper installation, the path to which can be
specified with theZOOKEEPER_PATHenvironment variable. If you don’t
already have an installation of ZooKeeper, runningmake zookeeperwill
create one where the default path is located.
Package: mend
mendMend, update, and repair git repositories.DesignProvides a semi-generic mechanism to produce changes -- using aGenerator-- and
and apply them to repositories -- using aPlugin:generatorsproduce one or more files.Generator may produce files from templates or programmatic manipulations of existing
files (in some git repository).pluginsapply the files produced by a generator to something.Plugins may simply output planned changes or may apply them a repository in some way.CLIBoth generators and plugins usesetuptoolsentry_pointsfor extensibility: themendCLI reflects the known instances of both types and allowsGeneratorandPluginimplementations
to provide custom CLI parameters.For example, the.circlci/config.ymlfile in this repo was generated using:mendcircleci-python-library--projectmendcopy--path.
Package: mendec
MEnDecgithub.com/biojet1/mendecpypi.org/project/mendecPython package for Message ENcryption and DEcryptionInstallpip install mendecUsageGenerate the secret key piar> python -m mendec keygen --bits 384 --output SECRET_KEYExtract first key> python -m mendec pick SECRET_KEY 1 KEY1Extract second key> python -m mendec pick SECRET_KEY 2 KEY2Using the first key encrypt a message to CYPHER file> printf 'Attack at Noon' | python -m mendec encrypt KEY1 -o CYPHERUsing the second key decrypt the message> python -m mendec decrypt KEY2 < CYPHER
Attack at NoonUsing the second key encrypt the message, then the first key to decrypt the message> printf Acknowledge | python -m mendec encrypt KEY2 | python -m mendec decrypt KEY1
AcknowledgeUsage
Package: mendel-development-tool
## What is this?MDT is a simple tool to aid in working with single board computers that the
Mendel Linux distribution runs on. It consists of a whole bunch of pre-existing
open source tooling, coupled with some simple wrappers written in python to ease
their use.It also provides an easy way to interact with these boards without having to
fight with serial consoles, IP addresses, and other fiddly bits, reducing
barrier to entry when working with these boards.With minimal effort, MDT should also be portable to existing systems such as
Debian and Ubuntu, if needed. This, however, is out of the scope of this
project.## How do I use it?Install it via pip like this:` pip installmendel-development-tool`Note that if you run this as a non-root user, the executable will be stored in$HOME/.local/binwhich may not be in your PATH environment variable, so you’ll
want to add it.
Package: mendeley
The Mendeley Python SDK provides access to theMendeleyAPI.  For more information on the
API and its capabilities, see thedeveloper portal.InstallationInstall fromPyPIusingpip, a
package manager for Python.pipinstallmendeleyDocumentationFull documentation, including examples, can be found onReadTheDocs.CompatibilityThe SDK has been tested with Python 2.7 and 3.4.Sample applicationsThere are two sample applications that illustrate how to use the SDK:mendeley-api-python-example, aFlaskweb application for accessing a user’s library.mendeley-api-python-catalog-example, a
command-line application for accessing the Mendeley catalog.
Package: mendeley2biblatex
This package is not maintained any more.This package converts a mendeley database to a biblatex fileIt is based on ascriptwritten by François Bianco, University of GenevaInstallationpip install mendeley2biblatexUsageFirst locate your database. On Linux systems it is:ls ~/.local/share/data/MendeleyLtd./MendeleyDesktop/your@email.com@www.mendeley.com.sqliteThe package only reads your database, but to avoid any loss it isrecommendedto  work on a copy of your databaseThen run mendeley2biblatex on your file withmendeley2bibtex -o mendeley.bib mendeley.sqliteTo see all options usemendeley2biblatex -h
Package: mendeley-cli
mendeley-cliCLI for MendeleyInstallpip install mendeley-cliDocker image is also available.docker image pull makisyu/mendeleyHow to get Mendeley API tokenTo create, update, and delete resources in your Mendeley library via Mendeley API, OAUTH2 flow is required.
We have to register and mark this mendeley-cli as a trusted application in your Mendeley (Elsevier) account by yourself.1. Register mendeley-cli as a trusted apphttps://dev.mendeley.com/myapps.htmlRegister a new app (if not exists)ExampleAll fields are required.Application name: MendeleyCLIDescription: MendeleyCLIRegirectURL:http://localhost:8888Port number is a variable; >1024 is recommended.Generate secret, and save it securely.SubmitYou got Client ID, Client Secret and Redirect URL.2. Generate OAUTH2 tokenIn a terminal, with setting the parameters by environment variables, get token bymendeley get token:MENDELEY_CLIENT_ID=<...> MENDELEY_CLIENT_SECRET=<...> MENDELEY_REDIRECT_URI=<...> mendeley get tokenAutomatically web browser opens and shows the login page, and please login.Then, the following messages show:Login succeeded. You can close this window or tab.
Please follow messages in the terminal to save your token.Also, the following messages show in the terminal:Login succeeded.
Please set an environment variable MENDELEY_OAUTH2_TOKEN_BASE64, or add it to a config file:

MENDELEY_OAUTH2_TOKEN_BASE64=<...>Now, all parameters to run mendeley_cli is retrieved.3. Configure mendeley_cliSave them to configuration file:MENDELEY_CLIENT_ID=<...>
MENDELEY_REDIRECT_URI=<...>
MENDELEY_CLIENT_SECRET=<...>
MENDELEY_OAUTH2_TOKEN_BASE64=<...>The configuration file must be~/.mendeley_cli/configor<pwd>/.mendeley_cli/config.
Alternatively, they can be specified by environment variables directly.4. All set!Runmendeley get documents
Package: mendeleystats
Mendeley Stats==============A command line tool to extract information about papers in a Mendeley folder.## Installation### OS X and Linux:```pip install mendeleystats```Also, you need to set API keys to a configuration file. First, enter http://dev.mendeley.com/ and register an app.to access the values of Consumer Key and Consumer Secret. With this information in hands, create afile .mendeleystatsconfig in your home directory. The content of this file must follow the format:```{"api_key" : "the value of the consumer key","api_secret" : "the value of the consumer secret"}```### WindowsI do not know. I accept help to write this :)## How to useIt is super simple to use:```mendeleystats [-h] --info {year,type,authors,keywords,publishedin}--output {chart,csv} --folder FOLDER```For example:```mendeleystats --info year --output chart --folder datamining```It displays a chart with information about papers per year from the "datamining" folder.You can get other types of information, you only need to change the value of the argument --info,the options are: year, type, authors, keywords, and publishedin.Besides, you can choose to save a .csv file with the information instead get a chart.For this, you need to use the value csv in the argument --output.
Package: mendelianerror
mendelian-error===============This package attempts to assign probability to a mendelian error event in a trio.For example, given a mother with genotype 'C/C' and a father with genotype 'C/C'a child with genotype 'C/T' will be a "mendelian error", in this case, a candidate*de novo* mutation.We can filter candidates based on their genotype likelihoods. For example if thechild had a genotype likelihood of -2,-1,-20 then we are likely to consider thisa genotyping error because the homozygous reference ("C/C" with GL -2) is fairlyclose the the GL for het (with GL -1). If the genotype likelihood field was-20,0,-20, then the call is confidently het. We can use the genotype likelihoodsto assign a probability:```Python>>> from mendelianerror import mendelian_error# everyone is homref. this should have a low probability of an error:>>> father = mother = child = [-0.1, -8.0, -8.0]>>> mendelian_error(mother, father, child)7.55...e-08# parents are hom, child is het. this is a likely mendelian error:>>> father = mother = [-0.6, -2.5, -2.5]>>> child = [-2.5, -0.6, -2.5]>>> mendelian_error(mother, father, child)0.987...```So the input is the 3 GL numbers for each of the father, mother, child.Installation============pip install mendelianerrorCLI===After installation, one can use this on a multi-sample VCF file like:```Shellmendelianerror $input.vcf father_id mother_id child_id > $new.vcf```to get only the putative mendelian errors, set a high cutoff:```Shellmendelianerror --cutoff 0.999 $input.vcf father_id mother_id child_id > $new.vcf```Limitations===========+ Only make sense for autosomal variants.+ Only works on trios (doesn't consider extended pedigrees or siblings).
Package: mender
MenderUsageasyncwithMender(base_url='https://docker.mender.io/api/management/v1')asmender:# List devices on page 1devices=awaitmender.get_devices_paged(page=1)print(devices)# List all devicesasyncfordeviceinmender.get_devices():print(device)# Filter all devices by attributesasyncfordeviceinmender.get_devices(attributes={"hostname":'xxx-ffffffffffff'}):print(device)or close your session by yourself:mender=Mender(base_url='https://docker.mender.io/api/management/v1')# ...# Remember to close during finishingawaitmender.session.close()InstallationUsing pip:pipinstallmenderUsing pipenv:pipenvinstallmenderDeploymentpipenvrunpython3setup.pysdistbdist_wheel
pipenvruntwineuploaddist/*Device inventory/inventoryAPI EndpointsAll URIs are relative tohttps://docker.mender.io/api/management/v1/inventoryClassMethodHTTP requestDescriptionMenderdevices_getGET/devicesList devicesMenderdevices_id_deleteDELETE/devices/{id}Remove selected deviceMenderdevices_id_getGET/devices/{id}Get a selected deviceMenderdevices_id_group_getGET/devices/{id}/groupGet a selected device's groupMenderdevices_id_group_name_deleteDELETE/devices/{id}/group/{name}Remove a device from a groupMenderdevices_id_group_putPUT/devices/{id}/groupAdd a device to a groupMendergroups_getGET/groupsList groupsMendergroups_name_devices_getGET/groups/{name}/devicesList the devices belonging to a given groupUser administration and authentication/useradmAPI EndpointsAll URIs are relative tohttps://docker.mender.io/api/management/v1/useradmClassMethodHTTP requestDescriptionMenderauth_login_postPOST/auth/loginLog in to MenderMendersettings_getGET/settingsGet user settingsMendersettings_postPOST/settingsSet user settingsMenderusers_getGET/usersList usersMenderusers_id_deleteDELETE/users/{id}Remove user from the systemMenderusers_id_getGET/users/{id}Get user informationMenderusers_id_putPUT/users/{id}Update user informationMenderusers_postPOST/usersCreate userReferenceshttps://github.com/yongjhih/mender.jshttps://github.com/yongjhih/openapi-generator/tree/mender/modules/openapi-generator/src/main/resources/python-typing-clientStackPEP 525 - Async Generator (require 3.6)PEP 557 - Dataclass (require 3.7, but there is a backport library for 3.6)PEP 498 - Formatted String Literals (require 3.6, but ther is a backport library for <3.6)
Package: menderbot
MenderbotThe AI-powered command line tool for working with legacy code.Designedbased on the principles of theMechanized Mending Manifesto.StatusMenderbot is usable in development of itself - a very small codebase. For instance, it's used on this project for first drafts of commit messages, it added most of the type annotations, and chat usually gives relevant answers. On codebases of an interesting size (> 10K lines) there is still much work to do.Commands implemented (-ish):menderbot ask: Ask a question about the codebasemenderbot chat: Interactively chat about the codebasemenderbot commit: Git commit the current changeset with a pre-populated commit messagemenderbot diff: Summarize the differences between two versions of a codebasemenderbot doc: Generate documentation for the existing code (Python only)menderbot review: Review a code block or changeset and provide feedbackmenderbot type: Insert type hints (Python only)menderbot ingest: Index the current state of the repo foraskandchatcommandsmenderbot check: Verify we have what we need to runSystem requirementsgitPython 3.9+Make (you already have it)The environment variableOPENAI_API_KEYset to a valid OpenAI API Key.RunningClone the project...Install an editable version (this usespip install -e .):git clone git@github.com:craftvscruft/menderbot.git

make installThen run withmenderbotin any repo.Installing from pipYou can also install directly from pip and avoid cloning the repo:pip install menderbot --upgradeRunning with DockerIf you don't have Python, you can run fromDockerusing the supplied Dockerfile. Runmake dockerto build the image and print instructions on how to run it.DevelopingClone the project...gitclonegit@github.com:craftvscruft/menderbot.gitThen you can initialize your Python environment usingvenv.makevenvsourcevenv/bin/activate

pipinstall"."".[dev]"If you want to re-generate the Antlr parsers, seePARSERS.md, but you probably won't need to.TestingFormatting, linting, tests, and type-checking can all be run with make, check theMakefilefor the underlying commands. Run before commiting, or CI will bark :)makecheckOr you can run individual steps# Run pytestmaketest# Run pytest with a coverage reportmakecoverage# Run mypymaketype# Run pylintmakelint# Run black and isortmakeformatAuthor👤Ray MyersYouTube:Craft vs CruftTwitter:@lambdapocalypseGitHub:@raymyersLinkedIn:@cadrlife🤝 ContributingContributions, issues and feature requests are welcome!Feel free to checkissues page. You can also take a look at thecontributing guide.Show your supportGive a ⭐️ if this project helped you!AcknowledgementsOpenAIGPT and Ada modelsLlamaIndex, an LLM data frameworkAntlrparser generator📝 LicenseCopyright © 2023Ray Myers.This project isApache 2licensed.
Package: mendi
mendiA python library for building menu-driven CLI applications.A menu-driven program is one, in which the user is provided a list of choices.
A particular action is done when the user chooses a valid option.
There is also an exit option, to break out of the loop.
Error message is shown on selecting a wrong choice.InstallationpipinstallmendiUsageThis is a simple snippet showing you the use ofmendiWrite functions with docstrings.
The first line of the docstring is the description of the choice.Calldrive_menuwith the list of functions.frommendiimportdrive_menudrive_menu([func1,func2])Seeexample.pyfor a full example.
Package: mendiafilescraper
Mendia File ScraperAboutThis is a client formendia.
It indexes local media (currently limited to movies), stores the findings in  a local database and publishes new additions to the server running mendia.Installation:sudo apt updatesudo apt install libmediainfo0v5pip install mendiafilescraperNote: This package needs the mediainfo library.Ubuntu/Debian: 'libmediainfo0v5'Arch: 'libmediainfo'Usage:--setup:Asks forUsernamePasswordMedia foldersServer address (e.gwss://hostname/ws/, depending on themendiaserver)and stores everything in a config file in the home directory~/.mendiafilescraper/config.txt--scan:Searches all given media folders for new additions and adds them to the database.--publish:Sends new additions to the configuredmendiaserver. Use only with--scanExample:Settingsmendia-scraper --setupAdd media paths, specify the server address and put in your username and password.Note: Ask the admin of your targetmendiaserver to create a username/password for you.First scanThe initial scan populates the local database.--publishshould not be used for the first scan, otherwise this might flood the server.mendia-scraper --scanWarning:Make sure that the initial scan worked before proceeding.Real scanAfter the first scan we can add--publish, from now on new movies will be sent tomendia.mendia-scraper --scan --publishCronjobIt makes sense to add the scan command to your crontab for automatic scans.crontab -eFor a daily scan add@daily mendia-scraper --scan --publishProblems:I have a new movie but mendia did not inform about itIt is possible to delete movies from the local database and to retry scanning the movie.Note: It is easier to use a gui application with sqlite support, but on typical NAS systems there is no gui.sudo apt install sqlite3cd ~/.MendiaFileScrapersqlite3 database.dbLet's say we want to remove the movie "Captive State".In the sqlite3 shell:SELECTtitle,hashFROMmoviesWHEREinstr(title,'Captive')>0;If you do not see any result, play with the search parameters until you found it.Let's say our result is:Captive State|a67edf9ee879a7562c17092b97dfe672The second value is the hash value that was computed based on the movie file.
To delete the entry with the has "a67edf9ee879a7562c17092b97dfe672" we do:DELETEFROMmoviesWHEREhash="a67edf9ee879a7562c17092b97dfe672";CTRL+Dto exit from the sqlite3 shell.Voila, the movie was removed and you can retry scanning withmendia-scraper --scan --publish
Package: mendidenborak
========
MendiDenborakMendian oinez ibilbide desberdinetan zenbat denbora beharko dugun kalkulatzeko paketeaFree software: GNU General Public License v3Erabilera eta instalazioaInstalatu paketea pip erabiliz:$ pip install mendidenborakErabiltzeko inportatu paketea eta deitu metodoei:>>> from mendidenborak import MendiDenborak
>>> md = MendiDenborak()
>>> md.kalkulatuDenbora("pista", 10000, 300, 200)
>>> 2.553475935828877Funtzioen azalpenakalkulatuDenbora(bidea, luzeera, igoera, jaitsiera)Ematen zaizkion balioen araberako kalkulua itzultzen du ordutan.

Balioak:
"bidea" aukerak: "pista", "bidexka", "bidexka-zaila", "bidez-kanpo"
"luzeera": ibilbidearen luzeera metrotan
"igoera": ibilbidearen igoera metatua metrotan
"jaitsiera": ibilbidearen jaitsiera metatua metrotan

=======
History
=======

1.0.0 (2021-09-04)
------------------

* First release on PyPI.
Package: mend-images-vuln
Images VulnerabilitiesThe tool creates a list of vulnerabilities per image in format CSV.Supported Operating SystemsLinux (Bash):CentOS, Debian, Ubuntu, RedHatWindows (PowerShell):10, 2012, 2016PrerequisitesPython 3.9+Mend user with admin permissionsInstallationpipinstallmend-images-vulnNote:Depending on whether the package was installed as a root user or not, you need to make sure the package installation location was added to the$PATHenvironment variable.UsageUsing command-line arguments only:images_vuln--user-key$WS_USERKEY--api-key$WS_APIKEY--url$WS_WSS_URL--email$WS_EMAIL--dir$OUTPUT_DIRECTORYUsing environment variables:exportWS_USERKEY=xxxxxxxxxxxexportWS_APIKEY=xxxxxxxxxxxexportWS_WSS_URL=https://saas.mend.ioexportWS_EMAIL=email@organization.com

images_vuln--dir<Outputfolder>Note:Either form is accepted. For the rest of the examples, the latter form would be usedConfiguration ParametersNote:Parameters can be specified as either command-line arguments, environment variables, or a combination of both.Command-line arguments take precedence over environment variables.CLI argumentEnv. VariableTypeRequiredDescription‑‑helpswitchNoShow help and exit‑‑versionswitchNoShow current version and exit‑‑user-keyWS_USERKEYstringYesMend User Key‑‑emailWS_EMAILstringYesMend User Email‑‑api-keyWS_APIKEYstringYesMend API Key‑‑urlWS_WSS_URLstringYesMend Server URL‑‑dirstringNoOutput directory for the CSV files (default:$PWD)‑‑separatebooleanNoIf set toTrue, then a CSV file will be created for each repo. If set toFalse, then one consolidated CSV file will be made.(default:True)‑‑proxyHTTP_PROXYstringNoProxy host including port, with or without protocol prefix and optionally credentials. Expected formats:myproxy.host.com:1234,http://myproxy.host.com:1234,http://user:pass@myproxy.host.com:1234‑‑proxyUsernameHTTP_PROXY_USERNAMEstringNoProxy username, if needed and if not included in the proxy host.‑‑proxyPasswordHTTP_PROXY_PASSWORDstringNoProxy password, if needed and if not included in the proxy host.