Saravanan666/pypi-org huggingface dataset:
Package: mekk.greader
Simple Google Reader access API. The module implements a couple of
feed management functions, making it possible to manage Google Reader
subscriptions (subscribe, unsubscribe, rename, (re)tag feeds) from
Python scripts and programs.WarningNo official documentation was used, I partially reverse-engineered
the API and partially used unofficial descriptions found on the web.
So there are absolutely no guarantees!Still, I regularly use this module to subscribe, unsubscribe and
rename feeds, especially viagreader2org.Sources, patches, bug reportsSource code is available onBitBucket. The same page can be used
for bug reporting and for patch submission.
Package: mekk.nozbe
mekk.nozbewraps (noticeable parts of)NozbeAPI as Python
functions.It uses both old, officially published API
(http://www.nozbe.com/gtd/api) and new (not yet officially docunented)
“Sync API”. Neither of those APIs is fully covered (the module
supports the functions which were working at early 2009 and which I
needed), but still I succesfully use the library to extract projects,
contexts and tasks from Nozbe and to create new (or update existing)
items.The code is currently using Twisted network interface (that means
returning deferreds etc). Well, I like Twisted.I consider providing
urllib-based synchronous API as an alternative, just need some
motivation.nozbetoolApart from the library, nozbetool script is bundled. Run:nozbetool --helpfor details. Most common usages:nozbetool export --csv=file.csv --user=YourNozbeUsername(export to .csv) or:nozbetool export --json=file.json --user=YourNozbeUsername --completed(export to .json, completed actions are included).Note: only .json export contains notes!DevelopmentDevelopment is tracked onhttp://bitbucket.org/Mekk/mekk.nozbe/ExampleSome simple example:from mekk.nozbe import NozbeApi, NozbeConnection
from twisted.internet import reactor, defer

# API KEY servers as an authentication token.
# Check for your own at Nozbe extras page (http://www.nozbe.com/account/extras).
# Note that publishing it is equivalent to publishing the password.
API_KEY = "grab your own from Nozbe"

@defer.inlineCallbacks
def make_some_calls():
    connection =  NozbeConnection(API_KEY)
    nozbe_client = NozbeApi()

    print "* Some projects"
    projects = yield nozbe_client.get_projects()
    for project in projects[:3]:
        print project
    print

    print "* Some contexts"
    contexts = yield nozbe_client.get_contexts()
    for context in contexts[:3]:
        print context
    print

    print "* Some tasks"
    tasks = yield nozbe_client.get_tasks()
    for task in tasks[:3]:
        print task
    print

    print "Adding example task"
    yield nozbe_client.add_task(
        u"Example task made using script",
        project_hash = projects[0]['hash'],
        context_hash = contexts[0]['hash'],
        next = 1)

@defer.inlineCallbacks
def main():
    try:
        yield make_some_calls()
    finally:
        reactor.stop()

reactor.callLater(0, main)
reactor.run()
Package: mekk.xmind
mekk.xmindis a pure-Python handler forXMindmind-map files.
It can be used to:generateXMindmind-maps from scratch (for example to visualize
some data as a mind-map),modify existing.xmindfiles,parse existing.xmindfiles and analyze their content.ExamplesCreating mind-map:from mekk.xmind import XMindDocument

OUTPUT = "test.xmind"

xmind = XMindDocument.create(u"First sheet title", u"Root subject")
first_sheet = xmind.get_first_sheet()
root_topic = first_sheet.get_root_topic()

root_topic.add_subtopic(u"First item")
root_topic.add_subtopic(u"Second item")
t = root_topic.add_subtopic(u"Third item")
t.add_subtopic(u"Second level - 1")
t.add_subtopic(u"Second level - 2")
root_topic.add_subtopic(u"Detached topic", detached = True)
t.add_subtopic(u"Another detached", detached = True)
t.add_marker("flag-red")
root_topic.add_subtopic(u"Link example").set_link("http://mekk.waw.pl")
root_topic.add_subtopic(u"Attachment example").set_attachment(
    file("map_creator.py").read(), ".txt")
root_topic.add_subtopic(u"With note").set_note(u"""This is just some dummy note.""")

MARKER_CODE = "40g6170ftul9bo17p1r31nqk2a"
XMP = "../../py_mekk_nozbe2xmind/src/mekk/nozbe2xmind/NozbeIconsMarkerPackage.xmp"
root_topic.add_subtopic(u"With non-standard marker").add_marker(MARKER_CODE)

xmind.embed_markers(XMP)

xmind.save(OUTPUT)

#xmind.pretty_print()

print "Saved to", OUTPUTNote: while examples above use ascii, unicode is fully supported.Parsing mind map:from mekk.xmind import XMindDocument

xmind = XMindDocument.open("test.xmind")

sheet = xmind.get_first_sheet()
print "Sheet title: ", sheet.get_title()

root = sheet.get_root_topic()
print "Root title: ", root.get_title()
print "Root note: ", root.get_note()

for topic in root.get_subtopics():
    print "* ", topic.get_title()
    print "   label: ", topic.get_label()
    print "   link: ", topic.get_link()
    print "   markers: ", list(topic.get_markers())
    # topic.get_subtopics()etc.To modify, just parse existing document, find items to modify and
change them as appropriate, then save.DevelopmentThe code is tracked using Mercurial. Repository can be found onhttp://bitbucket.org/Mekk/mekk.xmind/.Use the same place to report bugs, suggest improvements and offer
patches.Licensemekk.xmind is dual-licensed under Artistic License 2.0 and Mozilla Public
License 1.1. The complete license texts can be found in Artistic-2.0.txt
and MPL-1.1.txt.
Package: mekpie
Make Building C as Simple as PieMekpie is an opinionated build system for small scale C projects. The core premise of Mekpie is that you should not be spending time worrying about Make files, compiler arguments, or build times, when working on a small C projects. By enforcing a simple directory structure and always providing a clean build, Mekpie saves you time and effort. For added convenience Mekpie takes notes from tools likeRust's cargoandNode's npmand provides options for building, running, cleaning, and testing your current project.Mekpie is a small scale project and is not supposed to replace tools likeCMakeor provide any sort of package management capabilities. Use Mekpie when the alternative is a shoddy Make file or manually compiling.Currently Mekpie supports the gcc, clang, avr-gcc, and emscripten compilers, as well as allows users to write custom compiler configurations.InstallingMekpie is a python package. Use pip to install it!$pipinstallmekpieGetting StartedCreate a new project by runningmekpie new. Mekpie will walk you through the configuration$ mekpie new "project-name"
┌ Configuring mekpie...
│ Please provide a name for your project (default project-name):
│ Selected project-name.
│ Mekpie supports the following c compilers, please select one (compilers must be installed seperately):
│     - gcc_clang   for use with the gcc or clang compiler
│     - emscripten  for use with the emscripten c to js compiler
│     - avr_gcc     for use with avr-gcc and avrdude
│ Please select a cc (default gcc_clang):
│ Selected gcc_clang.
│ ┌ Configuring gcc_clang...
│ │ Please select a compiler command (default cc):
│ │ Selected cc.
│ │ Please select a debug command (default lldb):
│ │ Selected lldb.
│ └ gcc_clang configured!
└ mekpie configured!
project-name created successfully!Then navigate to the project directory and run$ mekpie run
Project succesfully cleaned.
Project succesfully built. (0.060s)
Hello, World!That's it!Read MoreContactFeel free to send be bug reports or feature requests. If you are interested in my other work, checkout mywebsite.Emailejrbuss@gmail.com
Package: mela
Alem MelaOverviewAsynchronous framework that makes it really simple to build RabbitMQ services.Installationpip install melaUsageBasic usage does look like this:app.py:from pydantic import BaseModel
from datetime import datetime

from mela import Mela

app = Mela(__name__)


class Document(BaseModel):
    text: str
    url: str
    date: datetime


@app.service('printer')
def printer(body: Document) -> Document:
    print(body)
    return body


if __name__ == '__main__':
    app.run()application.yml:connections:
  default:
    host: localhost
    port: 5672
    username: user
    password: bitnami

services:
  printer:
    consumer:
      exchange: general-sentiment-x
      routing_key: general-sentiment-q
      queue: general-sentiment-q
    publisher:
      exchange: general-sentiment-x
      routing_key: general-sentiment-qFor more use cases check/examplesdirectory.ContributeClone this repo, create virtualenv usingmake setupcommand.NOTE: If you use PyCharm - don't let it create its own virtualenv.Run tests usingmake testRun linter usingmake lintRun mypy usingmake typeFeel free to create issues.Feel free to contribute.Feel free to add yourself toAuthorsblock in this document.You also can joinour Telegram chat.Despite major version, there is a lot of work undone.
You can check TODO section in changelog to find an interesting task
for you or check issues section of this repository.ContributorsDeveloped in Alem Research.Core maintainer: Daniyar Supiyev (undead.thunderbird@gmail.com).Sponsor: Sergazy Narynov.
Package: melado
Melado 🍯Melado is a Python library, although very immature and at its early stages,
designed to provide a comprehensive collection of machine learning algorithms
implemented using only the powerful numerical computing library, NumPy. Its
primary objective is to serve as a valuable learning resource for understanding
various machine learning algorithms without the complexity and performance
considerations associated with larger machine learning frameworks.DevelopmentAfter cloning the repository, installPoetrywith your favorite package manager:paru-Syupython-poetryGo to themeladodirectory and install the dependencies:poetryinstallThe availableMakefilecan be used to either run the tests, run theRufflinter, run theMypytypechecker, and build the docs withSphinx:make{tests,lint,typecheck,docs}
Package: melanin
MelaninMelanin is a command-line utility that reformats Python files with the uncompromisingBlackformatter. However, it only reformats code that has changed compared to the lastGitcommit, much like only skin exposed to sunlight gets darker.In humans,melaninis the pigment responsible for the skin color and serves as protection against UV radiation. The production of melanin or melanogenesis is initiated by exposure to sunlight, causing the skin to darken. Also, melanin comes from the ancient Greek word for black.InstallationThemelaninpackage is available onPyPi, which means it is installable viapip.pip install melaninAlternatively, if you need the latest features, you can install it usingpip install git+https://github.com/francois-rozet/melaninGetting startedMelanin shamelessly plagiarizes Black's command-line interface. Thetancommand replicates most options provided byblack, such as--line-length,--diff,--fastand so on. The only but essential addition is the--commitoption, which selects the commit to which the working tree is compared. By default, the latter is the current commit (HEAD) but anygit checkoutpointer (e.g.86ccd137,HEAD~1,devororigin/master) works.For example, the following command reformats all Python code in the current directory (.) that has changed compared to the penultimate commit of themasterbranch.tan --commit master~1 .And that's it. Enjoy and don't forget to put on sunscreen!ConfigurationMelanin does not implement its own configuration system, but instead stealsBlack's configuration. No need for duplicates!
Package: melano
melanomelanois JSON utility libraryfeaturesdict compare>>>frommelanoimportdiff
>>>x,y=dict(x=1,y=2),dict(x=2,z=1)>>>diff.compare(x,y)[{'field':'x','x':1,'type':'MISMATCH','y':2,'message':'x: 1 (int) != 2 (int)'},{'field':'y','x':2,'type':'MISSING','message':'y: not found'},{'field':'z','y':1,'type':'MISSING','message':'z: not found'}]list of dict operationssort>>>frommelanoimportsort
>>>items=[dict(x=1,y=5),dict(x=4,y=2),dict(x=2,y=3),dict(x=1,y=2)]>>>sort(items,'x','y')[{'x':1,'y':2},{'x':1,'y':5},{'x':2,'y':3},{'x':4,'y':2}]group by>>>frommelanoimportgroup_by
>>>items=[dict(x=1,y=5,z=5),dict(x=4,y=2,z=3),dict(x=4,y=2,z=10)]>>>group_by(items,'x','y')[{'x':1,'y':5,'items':[{'x':1,'y':5,'z':5}]},{'x':4,'y':2,'items':[{'x':4,'y':2,'z':3},{'x':4,'y':2,'z':10}]}]count>>>frommelanoimportcount
>>>items=[dict(x=1,y=5,z=5),dict(x=4,y=2,z=3),dict(x=4,y=2,z=10)]>>>count(items,'x','y')[{'x':1,'y':5,'count':1},{'x':4,'y':2,'count':2}]
Package: melctl-client
This package provides the base MelCtl command-line client.DocumentationRepositoryAbout MelCtlMelCtl provides a set of APIs to interact withLuxProvide’s HPC (High
Performance Computer) and Cloud services.The MelCtl command-line client allows our customers and internal users
to interact with MelCtl APIs.The base package (MelCtl client) provides basic plugins
(e.g. authentication). Supplementary packages such asmelctl_client_plugins_customerprovides extra plugins to interact with
more services from the command line.AboutLuxProvideLuxProvide is Luxembourg’s one-stop-shop High Performance Computing
Centre, with missions to provide high performance computing
capabilities, high-speed connectivity and advanced applications on a
national, European and international scale, serving the public and
private sectors.
Package: melctl-client-plugins-customer
This package provides MelCtl plugins for LuxProvide customers.DocumentationRepositoryAbout MelCtlMelCtl provides a set of APIs to interact withLuxProvide’s HPC (High
Performance Computer) and Cloud services.The MelCtl command-line client allows our customers and internal users
to interact with MelCtl APIs.The base package (MelCtl client) provides basic plugins
(e.g. authentication). Supplementary packages such asmelctl_client_plugins_customerprovides extra plugins to interact with
more services from the command line.AboutLuxProvideLuxProvide is Luxembourg’s one-stop-shop High Performance Computing
Centre, with missions to provide high performance computing
capabilities, high-speed connectivity and advanced applications on a
national, European and international scale, serving the public and
private sectors.
Package: meld
MELDQuantifying the effect of experimental perturbations at single-cell resolutionTutorialsFor a quick-start tutorial of MELD in Google CoLab, check out this notebook from ourMachine Learning Workshop:MELD Quick Start - Zebrafish dataIf you're looking for an in-depth tutorial of MELD and VFC, start here:Guided tutorial in Python - Zebrafish data.If you'd like to see how to use MELD without VFC, start here:Tutorial using MELD without VFC - T cell data.IntroductionMELD is a Python package for quantifying the effects of experimental perturbations. For an in depth explanation of the algorithm, please read the associated article:Quantifying the effect of experimental perturbations at single-cell resolution. Daniel B Burkhardt*, Jay S Stanley*, Alexander Tong, Ana Luisa Perdigoto, Scott A Gigante, Kevan C Herold, Guy Wolf, Antonio J Giraldez, David van Dijk, Smita Krishnaswamy. Nature Biotechnology. 2021.The goal of MELD is to identify populations of cells that are most affected by an experimental perturbation. Rather than clustering the data first and calculating differential abundance of samples within clusters, MELD provides a density estimate for each scRNA-seq sample for every cell in each dataset. Comparing the ratio between the density of each sample provides a quantitative estimate the effect of a perturbation at the single-cell level. We can then identify the cells most or least affected by the perturbation.You can also watch a seminar explaining MELD given by@dburkhardt:Installationpip install meldRequirementsMELD requires Python >= 3.6. All other requirements are installed automatically bypip.Usage exampleimport numpy as np
   import meld

   # Create toy data
   n_samples = 500
   n_dimensions = 100
   data = np.random.normal(size=(n_samples, n_dimensions))
   sample_labels = np.random.choice(['treatment', 'control'], size=n_samples)

   # Estimate density of each sample over the graph
   sample_densities = meld.MELD().fit_transform(data, sample_labels)

   # Normalize densities to calculate sample likelihoods
   sample_likelihoods = meld.utils.normalize_densities(sample_densities)
Package: meld3
No further development of the meld3 package is planned.  The meld3 package
should be considered unmaintained as of April 2020.  Since 2007, meld3
received only minimal updates to keep compatible with newer Python versions.
It was only maintained because it was a dependency of the Supervisor package.
Since Supervisor 4.1.0 (released in October 2019), the meld3 package is
no longer a dependency of Supervisor.
Package: melddict
MeldDictA dict subclass that supports adding and subtracting other Mappings to perform
recursive merging and removal.By default, lists are also melded, but this can be configured. You can also
have keys whose values are empty after a subtraction dropped automatically.The full documentation is available online at:https://melddict.readthedocs.io/ExamplesYou can add two mappings together to combine them:meld_dict=MeldDict({'a':'a','b':[1,2],'c':{'1':1},'d':'d'})norm_dict={'b':[3,4],'c':{'2':2},'d':'D','e':'e'}meld_res=meld_dict+norm_dictmeld_res=={'a':'a','b':[1,2,3,4],'c':{'1':1,'2':2},'d':'D','e':'e'}meld_dict+=norm_dict# a.k.a. meld_dict.add(norm_dict)meld_dict==meld_resYou can also subtract one mapping from another:meld_dict=MeldDict({'a':'a','b':[1,2],'c':{'1':1,'2':2},'d':'d'})norm_dict={'b':[2,3],'c':{'2':2,'3':3},'d':'D','e':'e'}meld_res=meld_dict-norm_dictmeld_res=={'a':'a','b':[1],'c':{'1':1}}meld_dict-=norm_dict# a.k.a. meld_dict.subtract(norm_dict)meld_dict==meld_resChangelog1.0.0Tuesday Apr 3 2018Initial release
Package: meld-sandbox
M3LDGetting StartedIn order to get started quickly with M3LD, a sample project is bundled within the M3LD CLI that will set up a server, privacy center, and a sample application for you to experiment with.Minimum requirementsDocker(version 20.10.11 or later)Python(version 3.8 through 3.10)Download and install M3LDYou can easily download and install M3LD usingpip. Run the following command to get started:pipinstallmeld-sandbox
Package: meldtools
Meldtools - investigating Middle English documents in PythonMeldtools is a package that allows you to conveniently search Middle English Local Documents corpus.
It lets you query the corpus, slice it to easily-definable chunks and work with transcriptions, all
in one place.Setting up development environmentClone this repository andcdinto it.Python version managerUse a Python version manager of your choice.The recommended one to use ispyenv.Install Python ^3.8 with your version manager.Python package managerPoetryis the package manager used in this project.Follow the installation guide on the website to install Poetry.Runpoetry installso that Poetry can create a virtual envionment and install the packages into it.Poetry usespyproject.toml, the new configuration file for Python laid out inPEP 517andPEP 518.TestingTo quickly run unit tests run the command like thismake testOr if you want a full coverage reportmake ctestCheck for type hints by runningmake mypyRunning the command-line programIn order to run the program key in the following:poetry run meldtools jsonify -d dir/with/rec/files -r path/to/register/csv -The program works the Unix way, and it accepts a file or - as a special file that refers to stdout.poetry run meldtools jsonify -d dir/with/rec/files -r path/to/register/csv -

# OR

poetry run meldtools jsonify -d dir/with/rec/files -r path/to/register/csv out.jsonYou can direct stdout to a file by appending> meld.jsonto the previous command.
You can also pipe stdout directly tojq, for example,poetry run vl-lingo jsonify -d dir/with/rec/files -r /path/to/register/csv - | jq.
Package: meldutils
Graphical recursive file comparisonUsingMeldorVisual Studio Codeto accomplish file differencing.
Useful for managing large numbers of repos / projects, particularly for templates.python-mmeldutilsproject/myfile.f90~/codegraphically comparesproject/myfile.f90with every other file of the same name  recursively under~/code.Particularly on Windows, the GUI may be invoked, but you don't see any difference.
This is often because only one of the two files as a trailing\nor\r\n.
Meld won't show any difference, even with all text filters off.
Because of how Pythonfilecmp.cmpworks, there isn't a blazing fast simple solution to this.
A possibly slow solution would be using str.replace.So just realize it's OK, close Meld when it shows no difference and happy comparing!Reference
Package: melebeats
Easy input validation for pythonInstallationpip install askUsage>>> from ask import ask, askChar, askInt, askString, askPassword, askEmail, askBool, explain
>>> ask()
# Creates an empty input query here

>>> askInt('Your age')
Your age
# Input here (Only accepts integers)

>>> askString("What's your name?")
What's your name?
# Input here

>>> askChar('Do you want to proceed?', ['y','n'])
Do you want to proceed? (y/n)
# Input here (Only accepts 'y' and 'n')

>>> askChar('Do you want to install this?', ['y','n'], 'y')
Do you want to install this? (y/n) [y]
# Input here (Only accepts 'y' and 'n', you can hit enter to use the default 'y')

>>> askBool('Do you want to continue?')
Do you want to continue (y/n)
# Input here (automatically generates the possibilites 'y' and 'n')

>>> askEmail()
# Input here (only accepts email-adresses)

>> askPassword()
# Masked input here

>> explain()
# Prints explanation:
Attention: Input prompts follow this template:
"Question (answer1, answer2, answer3) [default_answer]"
(You can just hit enter to chose the default answer)
Package: melee-env
melee-envmelee-env wraps the fantasticlibmeleeas a more gym-esque environment with less boilerplate and setup. Additionally, melee-env provides a convenient and highly flexible framework for creating your own agents. For more information on these topics and melee-env, see theREADMEin the agents folder.Code example:frommeleeimportenumsfrommelee_env.envimportMeleeEnvfrommelee_env.agents.basicimport*importargparseplayers=[Rest(),NOOP(enums.Character.FOX)]env=MeleeEnv('path/to/iso',players,fast_forward=True)episodes=10;reward=0env.start()forepisodeinrange(episodes):gamestate,done=env.setup(enums.Stage.BATTLEFIELD)whilenotdone:foriinrange(len(players)):players[i].act(gamestate)gamestate,done=env.step()Video DemonstrationThis library has been designed with flexibility in mind. The action space, observation space, and the agents are completely modular, and there are only a few requirements to build your own.NoteThis library requires Slippi, which in turn requires an SSBM 1.02 NTSC/PAL ISO. This library does not and will not distribute this. You must acquire this on your own!InstallationInstall from pip:pip install melee-env. Test by runningagents_example.py --iso=/path/to/your/isoPlatform supportLinuxWindows
Package: meliae
This project is similar to heapy (in the ‘guppy’ project), in its attempt to
understand how memory has been allocated.Currently, its main difference is that it splits the task of computing summary
statistics, etc of memory consumption from the actual scanning of memory
consumption. It does this, because I often want to figure out what is going on
in my process, while my process is consuming huge amounts of memory (1GB, etc).
It also allows dramatically simplifying the scanner, as I don’t allocate python
objects while trying to analyze python object memory consumption.It will likely grow to include a GUI for browsing the reference graph. For now
it is mostly used in the python interpreter.The name is simply a fun word (means Ash-wood Nymph).
Package: melid
MelidMelid is a PyQt5 Library for Desktop Applications containing commonly used utils and advanced widget implementations in very simple forms.FeaturesRouterState managementData binded widgets (Provider Widget)Hot-reloadCSS Processor (TailwindCSS Syntax)Install$pipinstallmelidUsageCheck the examples folder for usage examples.$gitclonehttps://github.com/dev-47/melid.git
$cdmelid/examples/basic
$pythonmain.py