Saravanan666/pypi-org huggingface dataset:
Package: misspellings-lib
misspellingSpell checker for codeThis is a project originally imported/forked from the abandoned projecthttps://github.com/lyda/misspell-checkThis is a Python library and tool to check for misspelled words in
source code. It does this by looking for words from a list of
common misspellings. The dictionary it uses to do this is based
on the Wikipedia list of common misspellings.http://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machinesThe list has been slightly modified to remove some changes that
cause a number of false positives. In particularok->OKwas
removed (ok is frequently used in perl tests for instance).Opinionated versionThis includes custom additions that should be considered opinionated, such as
cancellation vs. cancelation. This is not recommended for anyone's use.ContributionsContributions are welcome! Please add unit tests for new features
or bug fixes. To run all the unit tests runpytest tests/.You can reviewcoverageof added tests by runningpytest --cov=tests.Note that tests are run onGitHub Actionsfor all supported python versions whenever the tree on GitHub is pushed to.The packaged version is available viapiporeasy_installasmisspellings-lib. The project page is onpypi:The source code is available in the following locations:Bitbucket:https://bitbucket.org/lyda/misspell-check/srccode.google:http://code.google.com/p/misspell-check/Github:https://github.com/lyda/misspell-checkGitorious:https://gitorious.org/uu/misspell-checkSourceforge:https://sourceforge.net/p/misspell-checkMazulo's GitHub:https://github.com/mazulo/misspellingPull requests on any of those platforms or emailed patches are fine.To doSome items on the TODO list:Implement option to interactively fix files.Give some thought to supporting multiple languages?Might a "common misspellings" list be different for different English
users - might an American make one set of mistakes while a German
writing English make another? Source of this data?Fix sed flag. We need to have it support sed -i optionally, have it output all
unambiguous sed commands, have it be more careful on what it
replaces. It might also be an idea to have a perl output option.Use generators to allow finding errors as you go. However, currently misspellings
grabs all files first, then checks them, which can take a while.Lacking tests for misspellings cli.CreditsKevin Lyda: Initial shell goo and python version.Steven Myint: Better python idioms and style. Mixed case support. Travis/tox support.Maciej Blizinski: Potential use inOpenCSWpushed move to python.Ville Skyttä: Sped up wordification, editor-friendly reporting.coverage:https://pypi.python.org/pypi/coverageKevin Lyda:https://github.com/lydaSteven Myint:https://github.com/myintMaciej Blizinski:https://github.com/automatthiasVille Skyttä:https://github.com/scoppypi:https://pypi.python.org/pypi/misspellingsOpenCSW:http://www.opencsw.org/
Package: misspy
misspyMisskey API library for Python with StreamingAPI support.supported softwareMisskey forks not listed below are supported only in the latest versionprovided they are API compatible.misskeymisskey (misskey.io)firefish (calckey)(Some APIs may not be compatible with some APIs due to missing documentation regarding firefish API specifications.)exampleOther examples can be found in the examples directory.send noteimportmisspymi=misspy.Bot(address,i=token)Output notes text to the consoleimportmisspybot=commands.Bot("misskey.example","token")asyncdefon_ready():print("loggedin: ")print("id: "+bot.id)print("name: "+bot.name)print("username: "+bot.username)awaitbot.connect(misspy.localTimeline)# supported args: misspy.homeTimeline, misspy.localTimeline, misspy.socialTimeline or misspy.hybridTimeline, misspy.globalTimeline and Conventional Methodasyncdefon_note(ctx,message):ifmessage["text"]=="test":awaitctx.add_reaction(":test:")print("------------")print(message)print("------------")bot.add_hook("ready",on_ready)bot.add_hook("note",on_note)bot.run()MiAuthfrommisspyimportMiAuthmia=MiAuth("misskey.io")print(mia.generate_url("example app"))whileTrue:input("enter to continue...")try:token=mia.check()breakexceptmisspy.MiAuthFailed:passprint(token)OtherdocsDocumentation can be found at:https://docs.misspy.xyz/supported python versionbelow 3.73.8 ~ 3.113.12supported❌⭕⭕supported misspy version❌2023.8.24rc1~latestlatestsupported misskey versionsThis library is developed based on the API specification for Misskey v13 or later, so v12 and earlier are not supported (but you may still be able to use this library).
Package: mist.ansible
mist.ansible============Ansible module for mist.io serviceInstallation============```pip install mist.ansible```Simple Example of Provisioning==============================```---- name: Provisioning playbook for digitaloceanhosts: localhosttasks:- name: Ensure DigitalOcean backend is presentmist_backends:mist_email: yourmist@account.commist_password: yourmistpasswordprovider: digitaloceanstate: presentbackend_secret: digital_secret_keyname: DigitalBackend- name: Create Machinemist:mist_email: yourmist@account.commist_password: yourmistpasswordbackend: DigitalBackendkey: UploadedKeylocation_id: id_of_chosen_locationsize_id: id_of_machine_sizeimage_id: id_of_imagename: digimachine```Full Example Playbook=====================```---- name: Provisioning playbook for nephoscalehosts: localhosttasks:- name: Ensure NephoScale backend is presentmist_backends:mist_email: yourmist@account.commist_password: yourmistpasswordprovider: nephoscalestate: presentbackend_key: nepho_usernamebackend_secret: nepho_passwordname: Nepho- name: Generate Key and save locallymist_keys:mist_email: yourmist@account.commist_password: yourmistpasswordname: NephoKeyauto_generate: truesave_locally: truelocal_save_path: /home/user/.ssh/NephoKey- name: Search for Ubuntu imagesmist_images:mist_email: yourmist@account.commist_password: yourmistpasswordbackend: Nephosearch_term: Ubunturegister: images- name: List available sizesmist_sizes:mist_email: yourmist@account.commist_password: yourmistpasswordbackend: Nephoregister: sizes- name: List available locationsmist_locations:mist_email: yourmist@account.commist_password: yourmistpasswordbackend: Nephoregister: locations- name: Create Machinemist:mist_email: yourmist@account.commist_password: yourmistpasswordbackend: Nephokey: NephoKeylocation_id: "{{ locations['locations'][0]['id'] }}"size_id: "{{ sizes['sizes'][0]['id'] }}"image_id: "{{ images['images'][0]['id'] }}"name: nephomachine```
Package: mist-cli
===========Mist CLI===========.. image:: https://codecov.io/gh/Hydrospheredata/mist-cli/branch/master/graph/badge.svg:target: https://codecov.io/github/Hydrospheredata/mist-cli:alt: codecov.io.. image:: https://travis-ci.org/Hydrospheredata/mist-cli.svg?branch=master:target: https://travis-ci.org/Hydrospheredata/mist-cli:alt: travis-ci.orgCLI interface for mist server for creating and updating mist function and context configuration.Installation--------------.. code-block:: bashpip install mist-cliAutocompletion---------------Instantly run the script every time when bash starts that generates content of **mist-cli-complete.sh**... code-block:: bashecho 'eval "$(_MIST_CLI_COMPLETE=source mist-cli)"' >> ~/.bash_profileOr you can just add **mist-cli-complete.sh** somewhere in the system and execute it when it needed.Also, you can generate that script by yourself:.. code-block:: bash_MIST_CLI_COMPLETE=source mist-cli > mist-cli-complete.shUsage mist-cli apply---------------Apply method accepts **-f** or **--file** parameter that should contain file or folder with ***.conf** files that represent your mist configuration (Artifact, Function or Context).The content of the file is a simple model that describes deployment of a particular entry of your config.All conf files should follow some format (e.g `00artifact.conf <example/my-awesome-job/00artifact.conf>`_)where field **version** is only supported in Artifact model type.By default, you can name your config files as you want and all configs will be processed without any order.So you can define this order with 2 numbers followed by a name.So, for example, you name your stage **test-stage** and want it run with priority **10**you should name the file like **10test-stage.conf**.For easy development process, you can skip validation of your configuration, for example,by default, *Function* models will be validated against context and artifact existence.So if you want to update *Function* with *context = foo* and *path = test-job_0_0_1.py*make sure that artifact with that key and context with that name exists in *Mist*.You can easily skip this kind of validation with **--validate** flag.
Package: mistela-flask
mistela-flaskA multi-event planner elaborated with Flask.Initial steps done following thisDigital Ocean guideThis version ofFlaskaims to provide a simpile solution to manage an event such as a wedding with different 'sub-events'. The tool also provides a custom-defined admin page asFlaskdoes not really provide one itself (and I did not likeFlask-adminas all users seemed to have admin rights).Either way, this was a nice user-case for me to get hands-on with Flask.Why the name Mistela?Mistela is 'sort of a wine' quite common in my region (València, Spain) for celebrations or simply after a family dinner. It made sense that if this flask 'flavour' is about events (celebrations) management, it should have an appropiate name, therefore, mistela-flask :).Downloading the package.Directly from the source:pip install git+https://github.com/Carsopre/mistela-flask.gitOr from pypi:pip install mistela-flaskInstalling the repository.To develop on the repository you should be usingPoetry. Once installed, simply run the install commandpoetry installand all development and production dependencies will be added to your virtual environment.UsageMistela-flask can be used as a package and easily deployed as any regular flask app.frommistelaflaskimportcreate_appimportsecretsimportosos.environ["SECRET_KEY"]=secrets.token_hex(16)# Required environment variable.os.environ["DATABASE_URI"]="sqlite:///db.sqlite"os.environ["MISTELA_TITLE"]="My big event"os.environ["STATIC_FOLDER"]="path//to//my//static//folder"os.environ["MAIL_USERNAME"]="joe.doe@email.com"os.environ["MAIL_PASSWORD"]="1234"app=create_app()app.run()By default, mistelaflask will run on aSQLitedatabase.A more 'real' example can be found in the root of the repository aswsgi.py.
Package: mister-jeeves
jeevesMr Jeeves will be happy to help you managing your Python project sir.Featuresjeeves lintRuns mypy and flakehelljeeves formatAuto formats the codeInstallationpipinstallmister-jeevesLicenseMITCreditsThis project was generated withwemake-python-package. Current template version is:06dd6b090ca018c0a07b1ad6c889e14951925b77. See what isupdatedsince then.
Package: mistermarket
Mr. MarketMr. Market - your servant in the Philippine financial marketFeatures & BenefitsGet the latest market price of a stock in the Philippine Stock ExchangeInstallation>pipinstallmistermarketUsage>frommistermarketimportMrMarket>jfc=MrMarket('jfc')# Jollibee's stock ticker>meg=MrMarket('meg')# Megaworld's stock ticker>jfc.price119.32>meg.price3.75Software Requirements and DependenciesRequestsPhisix API
Package: mistery
misterymistery(c.f. "MIST query") is a Python module for retrieving data
from theMESA Isochrones and Stellar
Tracks(MIST) database of stellar
models.  The module allows you to fetch data by submitting requests to
the web interpolator.  It is intended as a lightweight teaching tool
that lets students access real-world stellar model data with
minimal effort.  If you're
doing intensive scientific work, you may prefer to access
the data in other ways (e.g. by downloadingpackaged model
grids).Seethe documentationfor more
information.
Package: mistgen
MiSTGen: Minimum Snap Trajectory Generator1 OverviewMinimum snap trajectory generators can generate smooth trajectories that have minimum snap， pass through specified waypoints and are subject to velocity and acceleration constraints.2 How to use3.1 Installingpipinstallmistgen3.2 Usagefrommistgen.mistimportmist_generatormyMistGen=mist_generator()xxs,yys,tts=myMistGen.mist_2d_gen(waypts_ori,v0,a0,ve,ae,T)vaj_xy=myMistGen.mist_2d_vaj_gen(xxs,yys,tts)myMistGen.mist_2d_vis(waypts_ori,xxs,yys,tts,vaj_xy,show_wp=True,show_mist_xy=True,show_avj=True,same_plot=False)# or all in one:mistTraj=myMistGen.mist_2d_gen_all(waypts_ori,v0,a0,ve,ae,T,show_wp=True,show_mist_xy=True,show_avj=False,same_plot=False)A simple example:defmain_demo_v010():ax=[0.0,5.0,5.0,0.0]ay=[0.0,0.0,6.0,6.0]waypts_ori=np.array([ax,ay])T=10v0=np.array([0,0])a0=np.array([0,0])ve=np.array([0,0])ae=np.array([0,0])myMistGen=mist_generator()xxs,yys,tts=myMistGen.mist_2d_gen(waypts_ori,v0,a0,ve,ae,T)vaj_xy=myMistGen.mist_2d_vaj_gen(xxs,yys,tts)myMistGen.mist_2d_vis(waypts_ori,xxs,yys,tts,vaj_xy,True,True,True)yaw_rad,yaw_deg=myMistGen.calc_yaw(vaj_xy[0],vaj_xy[3])For more example, please do the following:frommistgen.examples.main_demo_v010importmain_demo_v010frommistgen.examples.main_demo_v02ximportmain_demo_v020frommistgen.examples.main_demo_v02ximportmain_demo_v0213 APISome utils functions:fromutils.T_functionsimportarrangeTfromutils.T_functionsimportinit_Tfromutils.cvxopt_qpimportquadprogfromutils.other_utilsimportcomputeQfromutils.other_utilsimportcalc_tvecfromutils.other_utilsimportre_shape_vajfromutils.other_utilsimportpoly_valLicenseThis source code is released underGNU GENERAL PUBLIC LICENSE Version 3license.For more questions, please contact author: Zhaoliang (zhz03@g.ucla.edu)Reference[1] Minimum Snap Trajectory Generation and Control for Quadrotors
Package: mistly
MistlySearch for songs and fetch lyrics in your terminal.UsageMistly expectsGENIUS_TOKENenv variable to be set, otherwise it will crash.
Absolutely brilliant error handling I know.To get Genius APICLIENT ACCESS TOKENsign up here:https://genius.com/signup_or_loginAnd justGenerate Access Token.
Check out their documentation if needed.Installationpip install mistly
Package: mistralai
Mistral Python ClientThis client is inspired fromcohere-pythonYou can use the Mistral Python client to interact with the Mistral AI API.InstallingpipinstallmistralaiFrom SourceThis client usespoetryas a dependency and virtual environment manager.You can install poetry withpipinstallpoetrypoetrywill set up a virtual environment and install dependencies with the following command:poetryinstallRun examplesYou can run the examples in theexamples/directory usingpoetry runor by entering the virtual environment usingpoetry shell.API Key SetupRunning the examples requires a Mistral AI API key.Get your own Mistral API Key:https://docs.mistral.ai/#api-accessSet your Mistral API Key as an environment variable. You only need to do this once.# set Mistral API Key (using zsh for example)$echo'export MISTRAL_API_KEY=[your_key_here]'>>~/.zshenv# reload the environment (or just quit and open a new terminal)$source~/.zshenvUsing poetry runcdexamples
poetryrunpythonchat_no_streaming.pyUsing poetry shellpoetryshellcdexamples

>>pythonchat_no_streaming.py
Package: mistral-ansible-actions
Mistral Actions for AnsibleNote: This project is experimental and in infancy. It might work for you.However, given interested users and the time I’d like to make it stable and
useful - so input and help is very welcome!InstallThe actions can be installed via pip, then we need to tell Mistral about them
and restart Mistral:pip install mistral-ansible-actions;
sudo mistral-db-manage populate;
systemctrl restart openstack-mistral*;UsageCalling ansible:action: ansible
input:
  hosts: '*'
  module: copy
  module_args: 'src=file.txt dest=/root/file.txt'
  remote_user: stack
  become: true
  become_user: rootCall ansible playbook:action: ansible-playbook
input:
  limit_hosts: overcloud-controller-0
  playbook: /home/stack/ansible/my_playbook.yaml
  remote_user: stack
  become: true
  become_user: rootPlans/IdeasWe only support a subset of args ansible and ansible-playbook commands,
more should be exposed. Maybe we can automatically add them all somehow?
Package: mistral-celery-actions
# Mistral Celery Actions### InstallationFirst of all, clone the repo and go to the repo directory:```.bashgit clone https://github.com/collabo-br/mistral-celery-actions.gitcd mistral-celery-actions```Local installation:```.bashpip install -e .```Then we need to tell Mistral about themand restart Mistral::```.bashmistral-db-manage populate;systemctrl restart openstack-mistral*;```### Provide celery settings properties on your `mistral.conf` file:```[celery]broker_url = amqp://<user>:<password>@<host>:<port>/mistralresult_backend = amqp://task_serializer = jsonresult_serializer = json```### UsageCall celery sync task:action: celery.sync-taskinput:task_name: 'task.my_custom_task'params:task_param1: "Hi, I'm sync"task_param2: ...Call celery async task:action: celery.async-taskinput:task_name: 'task.my_custom_async_task'params:task_param1: "Weeeeeeeeeeeee"task_param2: .......Useful Links============* `Mistral`_ <https://github.com/openstack/mistral>
Package: mistral-dashboard
Team and repository tagsMistral DashboardHorizon plugin for Mistral.Setup InstructionsThis instruction assumes that Horizon is already installed and it’s installation
folder is <horizon>. Detailed information on how to install Horizon can be
found athttps://docs.openstack.org/horizon/latest/contributor/quickstart.html#setup.The installation folder of Mistral Dashboard will be referred to as <mistral-dashboard>.The following should get you started. Clone the repository into your local
OpenStack directory:$ git clone https://opendev.org/openstack/mistral-dashboard.gitInstall mistral-dashboard$ sudo pip install -e <mistral-dashboard>Or if you’re planning to run Horizon server in a virtual environment (see below):$ tox -evenv – pip install -e ../mistral-dashboard/and then$ cp -b <mistral-dashboard>/mistraldashboard/enabled/_50_mistral.py <horizon>/openstack_dashboard/local/enabled/_50_mistral.pySince Mistral only supports Identity v3, you must ensure that the dashboard
points the proper OPENSTACK_KEYSTONE_URL in <horizon>/openstack_dashboard/local/local_settings.py file:OPENSTACK_API_VERSIONS = {
    "identity": 3,
}

OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOSTAlso, make sure you have changed OPENSTACK_HOST to point to your Keystone
server and check all endpoints are accessible. You may want to change
OPENSTACK_ENDPOINT_TYPE to “publicURL” if some of them are not.When you’re ready, you would need to either restart your apache:$ sudo service apache2 restartor run the development server (in case you have decided to use local horizon):$ cd ../horizon/
$ tox -evenv -- python manage.py runserverMistral-Dashboard Debug InstructionsFor debug instructions refer toOpenStack Mistral Troubleshooting
Package: mistral-jax
Mistral JAXUsageSimple installation from PyPI.pipinstallmistral-jaxImport MistralLMParams and MistralModelParams.frommistralimportMistralLMParams,MistralModelParamsRoadmapModel architecturePublish a Python libraryModel parallelismGenerationKV cacheSamplingTrainingInstallThis project requires Python 3.11, JAX 0.4.20.Create venv:python3.11-mvenvvenvInstall dependencies:CPU:pipinstall-Upip
pipinstall-Uwheel
pipinstall"jax[cpu]"pipinstall--pretorch--index-urlhttps://download.pytorch.org/whl/nightly/cpu
pipinstallgit+https://github.com/huggingface/transformers
pipinstall-rrequirements.txtCUDA 11:pipinstall-Upip
pipinstall-Uwheel
pipinstall"jax[cuda11_pip]"-fhttps://storage.googleapis.com/jax-releases/jax_cuda_releases.html
pipinstall--pretorch--index-urlhttps://download.pytorch.org/whl/nightly/cu118
pipinstallgit+https://github.com/huggingface/transformers
pipinstall-rrequirements.txtTPU VM:pipinstall-Upip
pipinstall-Uwheel
pipinstall"jax[tpu]"-fhttps://storage.googleapis.com/jax-releases/libtpu_releases.html
pipinstall--pretorch--index-urlhttps://download.pytorch.org/whl/nightly/cpu
pipinstallgit+https://github.com/huggingface/transformers
pipinstall-rrequirements.txtModel architectureMistralForCausalLM(
  (model): MistralModel(
    (embed_tokens): Embedding(32000, 4096)
    (layers): ModuleList(
      (0-31): 32 x MistralDecoderLayer(
            (self_attn): MistralAttention(
                    (q_proj): Linear(in_features=4096, out_features=4096, bias=False)
                    (k_proj): Linear(in_features=4096, out_features=1024, bias=False)
                    (v_proj): Linear(in_features=4096, out_features=1024, bias=False)
                    (o_proj): Linear(in_features=4096, out_features=4096, bias=False)
                    (rotary_emb): MistralRotaryEmbedding()
            )
            (mlp): MistralMLP(
                    (gate_proj): Linear(in_features=4096, out_features=14336, bias=False)
                    (up_proj): Linear(in_features=4096, out_features=14336, bias=False)
                    (down_proj): Linear(in_features=14336, out_features=4096, bias=False)
                    (act_fn): SiLUActivation()
            )
            (input_layernorm): MistralRMSNorm()
            (post_attention_layernorm): MistralRMSNorm()
      )
    )
    (norm): MistralRMSNorm()
  )
  (lm_head): Linear(in_features=4096, out_features=32000, bias=False)
)
Package: mistral-lib
Team and repository tagsmistral-libThis library contains data types, exceptions, functions and utilities common to
Mistral, python-mistralclient and mistral-extra repositories. This library also
contains the public interfaces for 3rd party integration (e.g. Actions API, YAQL
functions API, etc.)If you want to use OpenStack in your custom actions or functions, you will also
need to usehttps://opendev.org/openstack/mistral-extra.Free software: Apache licenseDocumentation:https://docs.openstack.org/mistral/latest/Source:https://opendev.org/openstack/mistral-libBugs:https://bugs.launchpad.net/mistralRelease notes:https://docs.openstack.org/releasenotes/mistral-lib/FeaturesTODO
Package: mistral-tempest-tests
Tempest plugin for Mistral Project.It contains the tempest plugin for the functional testing of Mistral Project.Free software: Apache licenseDocumentation:https://docs.openstack.org/mistral/latestRelease notes:https://docs.openstack.org/releasenotes/mistral/Source:https://opendev.org/openstack/mistral-tempest-pluginBugs:https://bugs.launchpad.net/mistral