Saravanan666/pypi-org huggingface dataset:
Package: mktstructure
mktstructureA simple command-line tool to download data from Refinitiv Tick History and compute some market microstructure measures.InstallationYou can installmktstructureviapip:pipinstallmktstructureQuick StartUse-hor--helpto see the usage instruction:$mktstructure-h
usage:mktstructure[OPTION]...

DownloaddatafromRefinitivTickHistoryandcomputesomemarketmicrostructuremeasures.

optionalarguments:-h,--helpshowthishelpmessageandexit-v,--versionshowprogram'sversionnumberandexitSub-commands:Chooseonefromthefollowing.Use`mktstructuresubcommand-h`toseehelpforeachsub-command.{download,clean,classify,compute}downloadDownloaddatafromRefinitivTickHistorycleanCleandownloadeddataclassifyClassifyticksintobuyandsellorderscomputeComputemarketmicrostructuremeasures1. Download dataLet's download the tick history for all S&P500 component stocks from Jan 1, 2022, to Jan 31, 2022:mktstructuredownload-u{username}-p{password}--sp500--parse--data_dir"./data"-b2022-01-01-e2022-01-31where{username}and{password}are the login credentials of Refinitiv DataScope Select.Note that we set the--parseflag to parse the downloaded data (gzip) into csv files by stock and date into the./datafolder.2. Clean dataThen we clean the downloaded and parsed data in the./datafolder: sorting by time, removing duplicates, etc.mktstructureclean--all--data_dir"./data"--replaceThe--replaceflag, if set, asks the program to replace the data file with the cleaned one to save disk space.3. Classify trade directionsUse theclassifysubcommand to classify trades into buys and sells by the Lee and Ready (1991) algorithm.mktstructureclassify--all--data_dir"./data"4. ComputeLastly, use thecomputesubcommand to compute specified market microstructure measures:mktstructurecompute--all--data_dir"./data"--outbidaskspread.csv--bid_ask_spreadNoteThis tool is still a work in progress. Some breaking changes may be expected but will be kept minimal.
Package: mkvbatchmultiplex
This project went into a rewrite for version 2.  Rename module was added to
help maintain output file namesPlexfriendly.Descriptionmkvbatchmultiplex program is for processingmkvmergecommand line and use
it as a template to apply the multiplex instructions to all the files found
in the directory. The command line is expected to be taken frommkvtoolnix-gui:Multiplexer->Show command linemkvmergeandmkvtoolnix-guiare part of theMKVToolNixset of tools
to work withMatroskamedia container files.Works with Windows (cmd.exe) or Linux/unix shells (bash, zsh, etc.)InstallationpipinstallmkvbatchmultiplexIt is been developed on Windows the media server is Windows based.
Made light testing on ubuntu and macOS 10.14 Mojave and ubuntu 18.04.
On macOS MKVToolNix must be version 30.0.0 or higher if working with
Dark Theme.If working with the source to execute the application first create the
locale files.  On the source directory execute:pythonsetup.pygenerate_catalogDependenciesPython3.8.1lxml4.5.2 or greaternatsort7.0.1 or greaterpymediainfo4.2.1 or greaterPySide25.14 or greaterMediaInfotested with versions 17.10->20.08MKVToolNixtested with versions 17.00->49.0.0In macOS 10.14 Dark theme MKVToolNix has to be version 30.0.0+ to use it.UsageIt assumed you have working knowledge of using MKVToolNix.  Select a
file make any operations needed copy command to clipboard:Multiplexer->Show command linePaste command on mkvbatchmultiplex push Process button and wait.
Remember to select and output directory.Step by step examples are in the github repositorywiki.RoadmapThis is just the base for the project.  The roadmap is:Work on rename module to fetch metadataWork on the Spanish interface translationEasier installation for linuxIf the the program generates any interest any further changes and additions
willalsodepend on user base needs.Seehttps://mkvbatchmultiplex.readthedocs.iofor more information.
Package: mkv-chapter-helper
mkv-chapter-helper.py -  Embed chapters into an MKV file with the ability to mix timecodes and chapter names from multiple sourcesInstallationpip install mkv-chapter-helperDescriptionmkv-chapter-helper allows you to choose different sources for correct timecodes and correct names for chapters to embed in an MKV file.Common use case:You have ripped your own movie to MKV, so the timecodes are correct, but you did not want to manually write out all chapter namesThere exists a pre-named chapters list onhttps://chapterdb.plex.tv/but the timecodes do not line upSimply use --timecodes-mkv to use the existing timescodes in your MKV file and then download the ChapterDB txt file and use --timecodes-txt-fileNote: The XML download from ChapterDB is not in the correct format for this script. Only download TXT from ChapterDB.Alternative use-case: the chapters are not found on ChapterDB, but the correct chapters are found in a private torrent tracker via provided Mediainfo dump. There are options to get timecodes or names from Mediainfo.Not Supported:Using a text file generated by Mediainfo. It only supports copy and paste input. Multi-line paste should work across terminals.Any text file format other than OGMAny XML file format other than the Matroska standard outlined here:https://www.matroska.org/technical/chapters.htmlGetting timecodes/names from another MKV file than the one you are manipulatingAs an alternative to the last bullet point, you can extract XML chapters from another MKV file via mkvextract or MKVToolnix-GUI and then use one of the XML flagsExternal DependenciesmkvmergemkvpropeditBoth must be in PATH as you run the scriptOptionsYou can view the arguments by runningmkv-chapter-helper --helpusage: mkv-chapter-helper [-h] (--timecodes-mkv | --timecodes-mediainfo | --timecodes-xml-file TIMECODES_XML_FILE | --timecodes-txt-file TIMECODES_TXT_FILE)
                          (--names-mkv | --names-mediainfo | --names-xml-file NAMES_XML_FILE | --names-txt-file NAMES_TXT_FILE)
                          input

Add/modify chapters in an MKV file

positional arguments:
  input                 MKV file to manipulate

options:
  -h, --help            show this help message and exit
  --timecodes-mkv, -tk  Use timecodes from input MKV file
  --timecodes-mediainfo, -tm
                        Use timecodes from Mediainfo
  --timecodes-xml-file TIMECODES_XML_FILE, -tx TIMECODES_XML_FILE
                        Use timecodes from input XML file
  --timecodes-txt-file TIMECODES_TXT_FILE, -tt TIMECODES_TXT_FILE
                        Use timecodes from input TXT file (OGM format only)
  --names-mkv, -nk      Use names from input MKV file
  --names-mediainfo, -nm
                        Use names from Mediainfo
  --names-xml-file NAMES_XML_FILE, -nx NAMES_XML_FILE
                        Use names from input XML file
  --names-txt-file NAMES_TXT_FILE, -nt NAMES_TXT_FILE
                        Use names from input TXT file (OGM format only)
Package: mkvenv
A wrapper for virtualenv, pip, and wheel that caches wheels to speed
up virtualenv creation.Features:Create and maintain a cache of wheels.Create a virtualenv and install packages from the wheel cache in a
single command.Add to the wheel cache as new packages are built.Download thevirtualenvsource code when not already installed
or out of date.Note that this package should be considered alpha/unstable!RequirementsPython 2.7Unix-like systems (ie, not Windows)ExamplesCreate a wheel cache (~/.mkvenv by default):% mkvenv init
% mkvenv list-wheels
# Wheels in /Users/nhoffman/.mkvenv/2.7.7/Now create a new virtualenv namedtest-envand install some
packages. As each package is installed, a wheel is first built and
saved to the cache, along with wheels for any dependencies:% cat requirements.txt
flake8
% mkvenv install --venv test-env -r requirements.txt
% test-env/bin/pip freeze
flake8==2.3.0
mccabe==0.3
pep8==1.5.7
pyflakes==0.8.1
wsgiref==0.1.2
% mkvenv list-wheels
# Wheels in /Users/nhoffman/.mkvenv/2.7.7/ =
flake8-2.3.0-py2.py3-none-any.whl
mccabe-0.3-py2.py3-none-any.whl
pep8-1.5.7-py2.py3-none-any.whl
pyflakes-0.8.1-py2.py3-none-any.whlSubsequent requests to install any of these packages will use the
cached wheels.Installation from the wheel cache can speed things up a lot when
packages require compilation:% cat scientific.txt
numpy
scipy
pandas
biopython
seqmagick
% mkvenv install --venv sci-env -r scientific.txt
620.66s user 36.41s system 75% cpu 14:28.52 total
% mkvenv install --venv another-env -r scientific.txt
10.87s user 4.82s system 18% cpu 1:24.65 totalInstallationInstallation is most easily performed from PyPi using pip:pip install mkvenvAlternatively, obtain the source code from either PyPi
(https://pypi.python.org/pypi/mkvenv) or GitHub
(https://github.com/nhoffman/mkvenv) and install by running eitherpython setup.py installorpip install .from within the
package directory. Installation provides a script namedmkvenvas
an entry point.mkvenv.pymay also be executed directly from the
top level of the package directory.Alternatively, note that the mkvenv script is implemented as a single
python file that can be invoked directly as a script. This script can
be downloaded and used to create a virtualenv on a system on which thevirtualenvpackage is not available:wget https://raw.githubusercontent.com/nhoffman/mkvenv/master/mkvenv/mkvenv.py
python mkvenv.pyIt may also be useful to distributemkvenv.pyalong with other
projects to facilitate creation of execution environments.ExecutionRunmkvenv-hfor a list of subcommands and common options, ormkvenv <subcommand>-hfor help on a subcommand. Note that common
options must be provided before the name of the subcommand
(eg,mkvenv-vwheelstreet-rrequirements.txt)Known BugsThere’s a known bug in pip using python 2.7 on OS X
(https://github.com/pypa/pip/issues/1964- the issue is not specific
to this project) that results in an error on installation from PyPI
with the message “AssertionError: Multiple .dist-info directories”
after a previous installation. The solution is to delete any residual
pip build directories:find /private -name 'mkvenv' -exec rm -r "{}" \; 2> /dev/null
Package: mkvimdb
mkvimdbRetag MKV files using IMDB, commandline, or an XML file.Free software: MIT licenseDocumentation:https://mkvimdb.readthedocs.io.FeaturesCreates XMl file for tagging.Creates common sense cannonical filenames.Is aware of TV series as well as films.Can operate interactively as well as fuzzy best guess.Use resulting XML to retag an MKV, for example…Build your XMLmkvimdb -s “Pulp Fiction” -y 1994 -o .Tag your filemkvpropedit tarantino,quentin-pulp_fiction-1994.mkv -t global:tarantino,quentin-pulp_fiction-1994.xmlCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.2.1 (2020-09-20)Fixing docs and Pyup.0.1.0 (2020-09-20)First release on PyPI.
Package: mkvimproject
Author:seletzDate:2007-06-30Revision:2383AbstractThis is an python utility to deal withVIMproject files which
are used by theprojectVIM plug-in.UsageThis egg provides two python scripts,mkvimprojectandpproject.
The first is to create a project file from a directory tree, the second is
a shortcut which creates a project file of the current directory and then
launchesVIMwith that project file load.mkvimprojectmkvimprojectcreates a project file from a given directory. You can
optionally provide a filters and predefined filter sets.The project file generated may be directly used with theprojectVIM
plug-in.usage: mkvimproject [options]

options:
  -h, --help            show this help message and exit
  -d DIR, --dir=DIR     the directory to scan
  -o OUT, --out=OUT     The output file
  -f FILTER, --filter=FILTER
                        The extensions to allow.
  -s FILTERSET, --filterset=FILTERSET
                        The filterset to use: one of python,c,none,plone,objcexample:user@host: ~/develop/plone $ mkvimproject -d . -o plone.vpj -s plone
user@host: ~/develop/plone $ ls -la plone.vpj
-rw-r--r-- 1 seletz seletz 3279254 Jun 30 16:02 plone.vpj
user@host: ~/develop/plone $ head plone.vpj
plone="/Users/seletz/develop/plone" CD=. filter="*.diff *.patch *.py *.pt *.txt *.zcml *.xml *.cpt *.cpy *.vpy *.metadata *.dtml" {
 ArchGenXML_trunk="ArchGenXML_trunk" CD=. filter="*.diff *.patch *.py *.pt *.txt *.zcml *.xml *.cpt *.cpy *.vpy *.metadata *.dtml" {
  build="build" CD=. filter="*.diff *.patch *.py *.pt *.txt *.zcml *.xml *.cpt *.cpy *.vpy *.metadata *.dtml" {
   bdist.darwin-8.9.1-i386="bdist.darwin-8.9.1-i386" CD=. filter="*.diff *.patch *.py *.pt *.txt *.zcml *.xml *.cpt *.cpy *.vpy *.metadata *.dtml" {
   }
   bdist.macosx-10.3-fat="bdist.macosx-10.3-fat" CD=. filter="*.diff *.patch *.py *.pt *.txt *.zcml *.xml *.cpt *.cpy *.vpy *.metadata *.dtml" {
   }
   lib="lib" CD=. filter="*.diff *.patch *.py *.pt *.txt *.zcml *.xml *.cpt *.cpy *.vpy *.metadata *.dtml" {
    archgenxml="archgenxml" CD=. filter="*.diff *.patch *.py *.pt *.txt *.zcml *.xml *.cpt *.cpy *.vpy *.metadata *.dtml" {
     argouml="argouml" CD=. filter="*.diff *.patch *.py *.pt *.txt *.zcml *.xml *.cpt *.cpy *.vpy *.metadata *.dtml" {pprojectpprojectcallsmkvimprojectfor the current directory and then launches VIM
with that project file loaded. The project file is named like the name of the
parent directory, with “.vpj” added.  If this file already exists, no new
project file is created, VIM is directly launched (please see also the-Uand-Xoptions).usage: pproject [options]

options:
  -h, --help            show this help message and exit
  -U, --update          Update projectfile.
  -X, --nolaunch        Do noit launch vim. Use with -U.
  -f FILTER, --filter=FILTER
                        The extensions to allow.
  -s FILTERSET, --filterset=FILTERSET
                        The filterset to use: one of python,c,none,plone,objcvim: set ft=rst tw=75 nocin nosi ai sw=4 ts=4 expandtab spell spelllang=en:
Package: mkv-line-split
mkv-line-splitmkv-linesplit is a Python script for splitting or cutting audio segments from mkv files.First it extracts the audio and subtitles from the mkv file, Then it splits the lines from the audio file according to the timestamps stored in the subtitles and names the output file to the corresponding line.RequirementsPython3MKVToolNixmkvextractused for extracting the audio and subtitle from the mkv file.mkvmergeused for splitting the parts from the mkv audio.Installation$ pip install mkv-line-splitUsage$ linesplit -m path/to/mkvmerge -x path/to/mkvextract path/to/mkv/file/or/directory
Package: mkvstrip
MKVStripPython script, that acts as a front end for mkvtoolnix to remove
excess audio and subtitle streams from mkv files. Also correcting
title information if needed. The intention is to allow someone
to setup a cronjob, to run this script at regular intervals
(for example, every night). Keeping your Movie collection
from collecting excessive tracks.Requirements:MKVToolNixPython3Installpip install mkvstripUsagePosix:mkvstrip -b /usr/bin/mkvmerge -l eng,fre /mnt/moviesWindows:mkvstrip -b C:\\Program/ Files\MKVToolNix\mkvmerge.exe -l eng,fre \\nas\moviesCLI Argumentsmkvstrip.py [-h] [-t] -b path -l lang path

positional arguments:
  path                         Where your MKV files are stored. Can be a directory or a file.

optional arguments:
  -h, --help                    show this help message and exit
  -t, --dry-run                 Enable mkvmerge dry run for testing.
  -b path, --mkvmerge-bin path  The path to the MKVMerge executable.
  -l lang, --language lang      3-character language code (e.g. eng). To retain
                                multiple, separate languages with a comma (e.g.
                                eng,spa).
Package: mkvsubmerge
mkvsubmergeSplit MKV file according to timestamp pairs specified by SRT
subtitle file and then merge into a new video file.RequirementsPython 3MKVToolNixInstallInstall latest version:pipinstallmkvsubmergeFor mkvtoolnix installation, seehttps://mkvtoolnix.download/downloads.htmlOn macOS you can install mkvtoolnix via brew:brewinstallmkvtoolnixUpgradeUpgrade to latest version:pipinstallmkvsubmerge--upgradeUsageusage: mkvsubmerge [-h] [-o OUT] [--srt SRT]
                   [--srt-encoding SRT_ENCODING]
                   [--start-offset START_OFFSET]
                   [--end-offset END_OFFSET]
                   mkv

positional arguments:
  mkv                   MKV file

optional arguments:
  -h, --help            show this help message and exit
  -o OUT                output MKV file
  --srt SRT             SRT file
  --srt-encoding SRT_ENCODING
                        SRT file encoding
  --start-offset START_OFFSET
                        offset to apply to every start
                        timestamp
  --end-offset END_OFFSET
                        offset to apply to every end
                        timestampExample# Looks for `example_video.srt` under same directory. Will output to `example_video.surbmerge.mkv` under same directory.mkvsubmergeexample_video.mkv# Will output to `example_video` under same directory.mkvsubmergeexample_video.mkv--srtexample_srt.srt# Will output `output_video.mkv`mkvsubmergeexample_video.mkv--srtexample_srt.srt-ooutput_video.mkvIf some sentence appears not complete in the generated video file, chances are that some timestamp falls between two key frames. Seehttps://mkvtoolnix.download/doc/mkvmerge.html#mkvmerge.descriptionfor detailed explanation:Note that mkvmerge(1) only makes decisions about splitting at key frame positions. This applies to both the start and the end of each range. So even if an end timestamp is between two key frames mkvmerge(1) will continue outputting the frames up to but excluding the following key frame.In that case you can extend every timestamp pair by specifying--start-offsetandend-offsetto include more key frames.# This will extend every timestamp pair by two seconds. Every timestamp will start one second earlier and end one second later.# No need to worry about overlapping/out-of-bounds timestamps as mkvsubmerge will take care of them.mkvsubmergeexample_video.mkv--start-offset-1000--end-offset1000AboutMed0paWmedopaw@gmail.comhttps://github.com/medopaw
Package: mkwcs
mkwcsmkwcsis a short and simple library I did to obtain astrometric solution for fits images. For the fits images (single HDU) it is assumed the East is at left and North is up, but there could be some arbitrary rotation on this configuration.To installmkwcsis as simple as:sudo pip install mkwcsThe library brings some scripts ready to use. For example, if you have an image, with the standard configuration (East left, North up) but with North direction rotated $\alpha$ counter-clockwise in the image, where you know that $0< \alpha < 20$, then you run:mkwcs_with_angle_range  image.fits  0.5  120.354  -35.847  0 20 0.1where, after the image name, the 3 next parameters are the pixel size, and coordinates of the image center (just approximately, in degrees), then the angle range ends and a $\delta \alpha$ increment to sample the range.If the arbitrary rotation is known (let's say 12.1 degrees), you just run the other script:mkwcs_with_angle  image.fits  0.5  120.354  -35.847  12.1If the field is poor in stars you can increase the limit magnitude (19 by default) for the catalog search cut, adding an extra parameter:mkwcs_with_angle  image.fits  0.5  120.354  -35.847  12.1 20There are other functionalities that can be used too. The scripts are:mkwcs_with_angle, mkwcs_with_angle_rangeandget_angle;  and they self explain when run without arguments. Other functionalities can be obtained from the library as well.Hope it is useful!
Package: mkwind
What is mkwind?mkwind is an accompanying package to mkite for running tasks on client workers.
This package allows running simulations without installing all the database requirements, thus protecting the server from modifications on the client side.
mkwind offers a set of tools for building, running, and postprocessing the tasks, and sending them back to mkite throughmkite_engines.DocumentationGeneral tutorial formkiteand its plugins are available in themain documentation.
Complete API documentation is pending.InstallationTo installmkwind, install the main dependenciesmkite_coreandmkite_engines:pipinstallmkite_coremkite_engines
pipinstallmkwindAlternatively, for a development version, use:pipinstall-Ugit+https://github.com/mkite-group/mkwindContributionsContributions to the entire mkite suite are welcomed.
You can send a pull request or open an issue for this plugin or either of the packages in mkite.
When doing so, please adhere to theCode of Conductin the mkite suite.The mkite package was created by Daniel Schwalbe-Kodadskoda@llnl.gov.LicenseThe mkite suite is distributed under the following license: Apache 2.0 WITH LLVM exception.All new contributions must be made under this license.SPDX: Apache-2.0, LLVM-exceptionLLNL-CODE-848161
Package: mkwvconf
OverviewThemkwvconf.pyprogram is a tool that automatically generates awvdialconfiguration for mobile
broadband devices using themobile-broadband-provider-infopackage.This repo is a fork of mkwvconf modified to work on Python 2.7 and later. The
original mkwvconf can be found atschuay/mkwvconf.UsageFirst, install the tool and its system dependency:python3-mpipinstallmkwvconfapt-getinstallmobile-broadband-provider-infoAfter installation, you can run tool to guide you through an interactive
setup experience that generates a wvdial configuration file for you:mkwvconf
Package: mkYARA
mkYARAWriting YARA rules based on executable code within malware can be a tedious task. An analyst cannot simply copy and paste raw executable code into a YARA rule, because this code contains variable values, such as memory addresses and offsets. The analyst has to disassemble the code and wildcard all the pieces in the code that can change between samples. mkYARA aims to automate this part of writing rules by generating executable code signatures that wildcard all these little pieces of executable code that are not static.InstallationInstallation is as easy as installing the pip package.pip install mkyaraUsageimportcodecsfromcapstoneimportCS_ARCH_X86,CS_MODE_32frommkyaraimportYaraGeneratorgen=YaraGenerator("normal",CS_ARCH_X86,CS_MODE_32)gen.add_chunk(b"\x90\x90\x90",offset=1000)gen.add_chunk(codecs.decode("6830800000E896FEFFFFC3","hex"),offset=0x100)gen.add_chunk(b"\x90\x90\x90\xFF\xD7",is_data=True)rule=gen.generate_rule()rule_str=rule.get_rule_string()print(rule_str)Standalone ToolmkYARA comes with a standalone tool that is cross platform, as in, it can create signatures for Windows binaries running under Linux.usage: mkyara [-h] [-i {x86}] [-a {32,64,x86,x64}] -f FILE_PATH [-n RULENAME]
              -o OFFSET -s SIZE [-m {loose,normal,strict}] [-r RESULT] [-v]

Generate a Yara rule based on disassembled code

optional arguments:
  -h, --help            show this help message and exit
  -i {x86}, --instruction_set {x86}
                        Instruction set
  -a {32,64,x86,x64}, --instruction_mode {32,64,x86,x64}
                        Instruction mode
  -f FILE_PATH, --file_path FILE_PATH
                        Sample file path
  -n RULENAME, --rulename RULENAME
                        Generated rule name
  -o OFFSET, --offset OFFSET
                        File offset for signature
  -s SIZE, --size SIZE  Size of desired signature
  -m {loose,normal,strict}, --mode {loose,normal,strict}
                        Wildcard mode for yara rule generation
                        loose = wildcard all operands
                        normal = wildcard only displacement operands
                        strict = wildcard only jmp/call addresses
  -r RESULT, --result RESULT
                        Output file
  -v, --verbose         Increase verbosityIDA PluginmkYARA comes with a IDA plugin to easily create YARA signatures by selecting a set of instructions and choosing one of the mkYARA -> Generate YARA rule options. Installation is as easy as installing the pip package and copying the mkyara_plugin.py to your IDA plugin directory.