Saravanan666/pypi-org huggingface dataset:
Package: mergedict
mergedict - A Pythondictwith a merge() methodA MergeDict is adictwith amerge()method.merge()is likedict.update()…from mergedict import MergeDict

d1 = MergeDict({'a': 1, 'b': 'one'})
d1.merge({'a':2, 'c': [2]})

assert d1 == {'a': 2, 'c': [2], 'b': 'one'}A MergeDict can be subclassed to create custom “merge” operations
based on the type of an item value.from mergedict import MergeDict

class SumDict(MergeDict):
      @MergeDict.dispatch(int)
      def merge_int(this, other):
          return this + other

d2 = SumDict({'a': 1, 'b': 'one'})
d2.merge({'a':2, 'b': 'two'})

assert d2 == {'a': 3, 'b': 'two'}mergedictmodule comes with aConfigDictthat will
extend/update lists/sets/dicts.from mergedict import ConfigDict

d3 = ConfigDict({'a': 1, 'my_list': [1, 2]})
d3.merge({'a':2, 'my_list': [3, 4]})

assert d3 == {'a': 2, 'my_list': [1, 2, 3, 4]}Project DetailsProject management on github -https://github.com/schettino72/mergedict/licenseThe MIT License
Copyright (c) 2013 Eduardo Naufel Schettinosee LICENSE filedevelopers / contributorsEduardo Naufel Schettino — main authorSebastian Pipping — build system fixesinstall$ pip install mergedictor download and:$ python setup.py installtestsTo run the tests:$ py.test
Package: merge-dictionaries
Merge dictionariesRoot problemYou uses everal IDEs and each maintain its own spelling dictionary.You want to merge them so words from PyCharm are available in PhpStorm too.UsageMerge all dictionariesTo discover dictionaries in your computer, extract words and merge them:$merge-dictionaries--mergeThis is a potentially destructive operation:
your dictionary files will be overwritten.Extract dictionaries wordsTo print all the words:$merge-dictionaries--extractThis is a safe operation.Build an Hunspell-compatible dictionaryTo create a personal dictionary file for your Hunspell dictionary:$merge-dictionaries--extract>$HOME/.hunspell_defaultThis is a safe read-only operation for your IDE files. This can
overwrite your default Hunspell dictionary if it already exists.Build a dictionary in a IDE specific formatYou can specify--format=<format>as argument to the extract task:$merge-dictionaries--extract--format=JetBrainsIt will output a dictionary file you can use in any IDE compatible with that format.This is a safe read-only operation.Sync with a Git repositoryCreate a$HOME/.config/merge-dictionaries.confwith the following content:git:-git@github.com:luser/dictionary.gitSee below if you wish to host the Git repository locally.IDE supportCurrently, the following IDEs are supportedAll JetBrains IDEs: application-level dictionaryHunspell: read personal dictionariesGit repositoryExtend the codeHow to add an IDE?To add an IDE, you need to provide the following methods:sourcesa list of paths candidates for the IDE dictionarya method extracting words from the dictionaryoutputa method to dump the extracted words in the IDE formatwritea method to save the files, normally you can call the ones createdHow can I contribute?You can commit your changes to the upstream by following instructions athttps://agora.nasqueron.org/How_to_contribute_codeThe canonical repository ishttps://devcentral.nasqueron.org/source/merge-dictionaries.gitFAQDelete a wordNot yet implemented. Here a proposal to implement this.Curently, the workflow is:[ extract ] -> { words } -> [ publish ]You want to add a new transformation step:[ extract ] -> { words } -> [ transform ] -> { words cleaned up } -> [ publish ]Add a transform step with an allowlist of the words to remove.It's not easy to detect if the user has removed a word explicitly
from a dictionary, as we don't cache extracted words.Host locally the Git repositoryIf you want to host the repository on your local machine, use a bare repository:$gitinit--bare~/.cache/dictionary
InitializedemptyGitrepositoryin/usr/home/luser/.cache/dictionary/You can push to a bare repository, but non-bare ones are protected against pushes,
to avoid a desync between your index and the working files.Alternatively, you can prepare a script to do this sequence of operation:$merge-dictionaries--merge
$cd~/.cache/dictionary
$gitresetLicenseBSD-2-Clause, seeLICENSEfile.
Package: mergefast
Py MergeMerge sorted list faster than usinglist.sortorheapq.merge.importmergefast# create some sorted listsa=list(range(-100,1700))b=list(range(1400,1800))# merge themmerged=mergefast.merge(a,b)Also specialized variants for even faster merging of homogenus lists:# Fast merge intsmergefast.merge_int(a,b)# Fast merge latin stringsmergefast.merge_latin(c,d)# Fast merge floatsmergefast.merge_float(e,f)SeearticleBuildingTo build the extension runearthly +build. To Test runearthly +testand to geneartor a performance graph runearthly +perf
Package: merge-fastq
merge_fastqPackage to merge multiple pair of pair-end fastq dataFree software: Apache Software License 2.0Documentation:https://merge-fastq.readthedocs.io.FeaturesGiven multiple pair-end fastq data merge them into single pair-end fastq w.r.t each READ1 and READ2Usage> merge_fastq –helpUsage: merge_fastq [OPTIONS]Console script for merge_fastq.Options:-fp1,--fastq1PATHFull path to gziped READ1 fastq files, can be
specified multiple times for example: –fastq1
test_part1_R1.fastq.gz –fastq1
test_part2_R1.fastq.gz  [required]-fp2,--fastq2PATHFull path to gziped READ2 fastq files, can be
specified multiple times for example: –fastq2
test_part1_R2.fastq.gz –fastq2
test_part2_R2.fastq.gz  [required]-op,--output-pathPATHFull path to write the output files (default:
Current working directory)-of1,--out-fastq1TEXTName of the merged output READ1 fastq file
(default: merged_fastq_R1.fastq.gz)-of2,--out-fastq2TEXTName of the merged output READ2 fastq file
(default: merged_fastq_R2.fastq.gz)--helpShow this message and exit.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2019-10-21)First release on PyPI.
Package: merge_functions
Merge functions from other python filesthis is a dirty way to merge functions from other python files into one python file in order to deploy fast.install merge_functionspip install merge_functionshow to useif you want to import from current directory python file, you need set environment:if you current path is:~/codeorD:\codemac or linux:export PYTHONPATH=~/codewindowsset PYTHONPATH=D:\codehelp infomf -hsimple example:mf -i main.py -m demothis will import need functions and classesmf -i main.py -m demo -a-i: input file-m: modules or keywords in modules-a: get all code from source filethen, demo's functions will merge intoone.pyPS: the code you need merge from extra module must in from ... import ... statementsmain.pybelowfromdemoimportadd,subtract,multiply,divideimportjsondefrun():a,b=3,4result1=add(a,b)result2=subtract(a,b)result3=multiply(a,b)result4=divide(a,b)result_dict={"result1":result1,"result2":result2,"result3":result3,"result4":result4,}print(json.dumps(result_dict))if__name__=="__main__":run()demo.pybelowdefadd(a,b):returna+bdefsubtract(a,b):returna-bdefmultiply(a,b):returna*bdefdivide(a,b):returna/bifbelse0
Package: merge-gbk-records
Merge multiple GenBank records using a defined spacer sequenceA small script to turn a multiple GenBank records (either in multiple files or a
single multi-record file) into a single record.Sequences are merged by concatenating them in order, and putting a spacer
sequence between them. Spacer sequence length can be given in kbp. It is
possible to pick an all-N spacer, or using a spacer consisting of all-frame stop
codons.Installationpip install merge-gbk-recordsAlternatively, clone this repository from GitHub, then run (in a python virtual environment)pip install .If this fails on older versions of Python, try updating yourpiptool first:pip install --upgrade pipand then rerun themerge-gbk-recordsinstall.merge-gbk-recordsis only developed and tested on Python releases still under active
support by the Python project. At the moment, this means versions 2.7, 3.3, 3.4, 3.5 and 3.6.
Specifically, no attempt at testing under Python versions older than 2.7 or 3.3 is being made.If your system is stuck on an older version of Python, consider using a tool likeHomebreworLinuxbrewto obtain a more up-to-date
version.UsageBy default,merge-gbk-recordswill add a 20 kbp spacer of allNs and output
the merged record on the terminal.merge-gbk-records first.gbk second.gbk > merged.gbkYou can set different lengths using-lor--length. To use a 5 kbp spacer, use:merge-gbk-records --length 5 first.gbk second.gbk > merged.gbkYou can select an all-frame stop codon spacer instead using-s stopor--spacer stop:merge-gbk-records --spacer stop first.gbk second.gbk > merged.gbkInstead of writing to stdout, you can also write to a file using-oor--outfile:merge-gbk-records --outfile merged.gbk first.gbk second.gbkTo print help about the command, just run it with-hor--help:merge-gbk-records --helpLicenseAll code is available under the Apache License version 2, see theLICENSEfile for details.
Package: merge_ics
A simple Python script to mergeRFC5545calendar files. It
accepts several input calendars (referred to assources) and processes
them into one or more output calendar (sinks).Installation$ pip install merge_icsUsage$ merge_ics <config_file>Config file formatmerge_icsreads configuration from YAML files passed through the
command line as above. These YAML files should contain two nodes:sourcesspecifies the input calendars, andsinksdescribes the calendars that should be outputted by the
script.sourcesThesourcesnode should contain a mapping whose keys are arbitrary
identifiers for the input calendars. The values should again be
mappings, with the possible keys beingfilenameandurl. The
value forfilenameshould describe a local ics file, while that forurlshould point to a remote one. The presence of both keys will
result inmerge_icstrying to read and parse the local copy,
downloading the remote copy only in case of error.sinksThesinksnode should contain a collection, each of which is a
descriptor for an output calendar. These sink descriptors should contain
three keys:filename: the filename where to write the calendar.sources: a mapping with keys being the arbitrary identifiers of
the sources that you want to merge. The events from each of these
source calendars will be given the corresponding values in aCATEGORIESprop.options: a mapping of calendar-level props. Make sure to always
includeversionandprodid(otherwise the resulting ics file
will be non-conformant).Examplesources:
  1:
    filename: https://example.com/cal_local.ics
  online_cal:
    url: https://example.com/cal_online.ics
  2:
    filename: cal2.ics
    url: https://example.com/cal2.ics
sinks:
  -
    filename: output_cal1.ics
    sources:
      1: Local Events
    options:
      version: 2.0
      prodid: -//Owner//LocalEvents//EN
      x-wr-calname: Local Events
      x-wr-caldesc: Events from my local calendar
      calscale: GREGORIAN
      method: PUBLISH
      x-published-ttl: PT15M
  -
    filename: output_cal123.ics
    sources:
      1: Local Events
      online_cal: Online Events
      2: Another Category
    options:
      version: 2.0
      prodid: -//Owner//Merged//EN
      x-wr-calname: Merged Calendar
      x-wr-caldesc: All my events
      calscale: GREGORIAN
      method: PUBLISH
      x-published-ttl: PT15MLicenseMIT
Package: merge-kdbx
merge_kdbxWhat's this?This program merges multiple keepass 2.x databases exported in XML. The merged XML includes exclusive entries and last modified ones if two or more sources have an entry with the same title.Installpip install merge-kdbxUsageusage: merge_kdbx.py [-h] [-f] dst srcs [srcs ...]

positional arguments:
  dst          path to destination xml files.
  srcs         paths to source xml file to be merged.

optional arguments:
  -h, --help   show this help message and exit
  -f, --force  permit overwriting source file by dst.Then you can import the generated XML into new and empty kdbx database. Existing entries should be removed before import as shown in the below figure.
Package: merge-koskidata2primusdata
Utility which merging Koski and Primus CSV reports. Using the Primus card number as identifier.Usage merge_student_yearsMerging Koski student years and primusquery generated CSV reports.Usage: merge_student_years [OPTIONS] KOSKI_INPUT_PATH OUTPUT_PATHPRIMUS_DATA_FILEOptions:-e,--primus_encodingTEXT[default: utf-8-sig]-d,--delimiterTEXT[default: ;]-v,--validationBOOLEAN[default: True]--helpShow this message and exit.Usage add_columnAdding one column outside student registry to end of the merged report.Usage: add_column [OPTIONS] SOURCE_FILE OUTPUT_PATHOptions:-e, –empty_value TEXT
-c, –primus_encoding TEXT     [default: utf-8-sig]
-d, –delimiter TEXT           [default: ;]
-D, –drop_duplicates BOOLEAN  [default: True]
-v, –validate BOOLEAN         [default: True]
–helpInstallationpip install merge-koskidata2primusdataRequirementspandas
clickCompatibilityLicenceGNU Lesser General Public License v3.0 or later (LGPLv3.0+)Authorsmerge_koskidata2primusdatawas written byPasi Ollikainen.
Package: mergemypdf
Merge-PDFMerge PDF files using customizations within a folder using Command line.How to Installpip install mergemypdfHow to useOpen TerminalMove to the directory where PDFs are present.Runmergemypdf -hfor more info.Usage:mergemypdf -c <number_of_pdfs> -o <order_of_merging>  -f <output_pdf_filename>Examples:mergemypdf -c 10 -o 1 -f merged.pdfmergemypdf -p password -f merged.pdfmergemypdf -ep 1 -p passwordmergemypdf -a 1 -f merged.pdfOptional arguments:- s : <pdf_name_starting_with_string> 
- e : <pdf_name_endswith_string> 
- cn: <pdf_name_containing_string>Note:-crepresents number of PDFs needed to merge.-orepresents order of merging PDFs, 0 is Ascending, 1 is descending and 2 is Shuffle. Default is Ascending.-srepresents start string in PDF file's name.-erepresents end string in PDF file's name.-cnrepresents string containing in PDF file's name.-frepresents saved file name. Default names are randomly generated, adviced to specify a name everytime.-irepresents the flag if only images need to be merged within a folder. Default is false.-iprepresents the flag if both images and pdfs need to be merged within a folder. Default is false.-prepresents password used to decrypt PDFs. If the PDFs have individually different passwords omit this and you will be prompted to enter each password.-epubrepresents the flag if only EPUBs need to be merged within a folder. Default is false.-eprepresents the flag if both EPUBs and PDFs need to be merged within a folder. Default is false.-ierepresents the flag if both images and EPUBs need to be merged within a folder. Default is false.-arepresents the flag if all support file types (PDF, Images and EPUBS) need to be merged within a folder. Default is false.Usage of Optional Arguments.mergemypdf -s 09Only merge PDFs starting with 09.mergemypdf -e DerivationOnly merge PDFs ending with Derivation.mergemypdf -cn LectureOnly merge PDFs having keyword 'Lecture' in the name.mergemypdf -i 1Only merge Images from the directory.mergemypdf -ip 1Merge both Images and PDFs from the directory.mergemypdf -p test123Merge all PDFs from directory using the supplied password on any encrypted PDFs.mergemypdf -epub 1Only merge EPUB files from the directory.mergemypdf -ep 1Merge both EPUBs and PDFs from the directory.mergemypdf -ie 1Merge both Images and EPUBs from the directory.mergemypdf -a 1Merge PDFs, Images and EPUBs from the directory.
Package: mergepdf
mergepdfis a package for merge PDF files.$ mergepdf -h
usage: mergepdf [-h] [-i INPUT_DIR] [-o OUTPUT_FILE] [-k SORTED_KEY]

Merge PDF files.

optional arguments:
  -h, --help            show this help message and exit
  -i INPUT_DIR, --input-dir INPUT_DIR
  -o OUTPUT_FILE, --output-file OUTPUT_FILE
  -k SORTED_KEY, --sorted-key SORTED_KEYRequirementsPython 3.7 laterFeaturesnothingSetup$ pip install mergepdfHistory0.0.1 (2018-9-23)first release
Package: merge-pdf
Merge pdfMerge by name, all pdfs in the current folder, or specific list of files, into a single pdf fileInstall$pipinstallmerge-pdfHow to use# Import modulefrommerge_pdfimportmerge# Path of the output pdf fileoutput_file="c:\\output\\merged_files.pdf"# Folder of the output fileoutput_file_folder="c:\\output"# Folder within have pdf filesfolder_files_pdf="c:\\pdf_files"# List of specific pdf filesfiles_list=["c:\\pdf_files\\01.pdf","c:\\pdf_files\\02.pdf","c:\\pdf_files\\03.pdf"]# Merge the files inside of specific folder and save in output filemerge.Merge(output_file).merge_folder(folder_files_pdf)# Use a folder to generate the output file with the default name in this foldermerge.Merge(output_file_folder).merge_folder(folder_files_pdf)# Merge specific list of filesmerge.Merge(output_file,replace=True).merge_file_list(files_list)# Merge files and allow replace existing file outputmerge.Merge(output_file,replace=True).merge_folder(folder_files_pdf)# Merge files and print the status of the programmerge.Merge(output_file,debug=True).merge_folder(folder_files_pdf)
Package: mergepdfs
mergepdfsPython command line program to merge multiple pdfs to one pdf.Usage:Â´Â´Â´
mergepdfs [inputfiles] outputfile
Â´Â´Â´where inputfiles either is a sequence of pdf files or the wild card symbol Â´*Â´ which will take all pdf files in the folder.
The outputfile is the complete name of the new pdf file.Example:Â´Â´Â´
mergepdfs file1.pdf file2.pdf outputfile.pdf
Â´Â´Â´Â´Â´Â´
mergepdfs * outputfile.pdf
Â´Â´Â´
Package: merge-requirements
# merge-requirementssimple lib for organize two requirements.txt in a unique requirements.txt file### Example:cat requirements_1.txt
gunicorn==0.12.2
python-memcached==1.47
globocore==4.11.1
alf==0.4.2cat requirements_2.txt
globocore==4.16.13
Django==1.4.13
IPTCInfo==1.9.5-6
alf==0.4merge_requirements requirements_1.txt requirements_2.txt
create new file ./requirements-merged.txtcat requirements-merged.txt
Django==1.4.13
gunicorn==0.12.2
globocore==4.16.13
alf==0.4.2
python-memcached==1.47
IPTCInfo==1.9.5-6
Package: mergerpy
MergerPyLinuxWindowsIntroductionThis library provides a fast text concatenation from files. It works with Python versions from 2.7+ and Python 3.
The main aim to create this library is to create new passwords from given files which contain tokens. Then you can
usebtcrecoverto get your password back.Sample:tokens.txtA 1 e 2 a 3B s h i rE i 34 26 sNew created passwords.txtABEABiAB34AB26ABs…Getting the codeThe code is hosted athttps://github.com/abdullahselek/MergerPyCheck out the latest development version anonymously with:$ git clone git://github.com/abdullahselek/MergerPy.git
$ cd MergerPyTo install test dependencies, run:$ pip install -Ur requirements.testing.txtRunning TestsThe test suite can be run against a single Python version which requirespip install pytestand optionallypip installpytest-cov(these are included if you have installed dependencies fromrequirements.testing.txt)To run the unit tests with a single Python version:$ py.test -vto also run code coverage:$ py.test --cov=mergerpyTo run the unit tests against a set of Python versions:$ toxSample UsageWith using only one function:from mergerpy import merger

merger.process('tests/resources/sample.txt')Command Line UsageWith--inputparameter:python mergerpy.py --input tests/resources/sample.txtLicenceMergerPy is released under the MIT license. See LICENSE for details.
Package: mergers
Bravo!  You have received a Medical Diploma in Mergers fromthe Orbital Convergence University International Air and Water Embassy of the Tangerine Planet.You are now officially certified to include "mergers" in your practice.mergersdescriptionThis is a module that can reliably
ascertain the health status of software.(It's like a testing framework)install[ZSH] pip install mergersdocumentation (this opens a server process that sends HTML)[ZSH] mergers sharesinternal status tests of the module[ZSH] mergers internal-statusThese checks are run with pypi "body_scan""mergers" is built from a fork of "body_scan"("body_scan" checks are written with "unittest")TutorialChecks are started simultaneously, unless "--simultaneous no"Create a status file (glob pattern "**/status_*.py").(The glob pattern can be modified with the progammatic python3 interface)# status_1.py

def check_1 ():
	print ("check 1")
	
def check_2 ():
	print ("check 2")
	
def check_3 ():
	raise Exception ("not 110%")

checks = {
	"check 1": check_1,
	"check 2": check_2,
	"check 3": check_3
}from a directory deeper than the status file "status_1.py"[ZSH] mergers statusThis is the equivalent of:[ZSH] mergers status --glob-string "**/status_*.py"The report then should appear like thispaths: [
	{
		"path": "../status_1.py",
		"empty": false,
		"parsed": true,
		"stats": {
			"passes": 2,
			"alarms": 1
		},
		"checks": [
			{
				"check": "check 1",
				"passed": true,
				"elapsed": [
					4.054199962411076e-05,
					"seconds"
				]
			},
			{
				"check": "check 2",
				"passed": true,
				"elapsed": [
					1.72930003827787e-05,
					"seconds"
				]
			},
			{
				"check": "check 3",
				"passed": false,
				"exception": "Exception('not 110%')",
				"exception trace": [
					"Traceback (most recent call last):",
					"  File \"/home/veganecology/.local/lib/python3.11/site-packages/mergers/processes/scan/process/keg/check.py\", line 68, in start",
					"    checks [ check ] ()",
					"  File \"<string>\", line 13, in check_3",
					"Exception: not 110%"
				]
			}
		]
	}
]
alarms: [
	{
		"path": "../status_1.py",
		"checks": [
			{
				"check": "check 3",
				"passed": false,
				"exception": "Exception('not 110%')",
				"exception trace": [
					"Traceback (most recent call last):",
					"  File \"/home/veganecology/.local/lib/python3.11/site-packages/mergers/processes/scan/process/keg/check.py\", line 68, in start",
					"    checks [ check ] ()",
					"  File \"<string>\", line 13, in check_3",
					"Exception: not 110%"
				]
			}
		]
	}
]
stats: {
	"alarms": 0,
	"empty": 0,
	"checks": {
		"passes": 2,
		"alarms": 1
	}
}Advanced TutorialIt's recommended to run mergers programmatilly.An example of this can be found in the "_book/advanced tutorial"section of the documentation.Contactsbgrace2468@pm.me
Package: merge-stardist-masks
FeaturesThis new post-processing step allows to useStarDistsegmentation on
non-star-convex objects.Instead of NMS, this post-processing naively merges masks togetherMasks whos center points lie within another mask are added to that maskWorks in 2D and 3DIn 2D, it works on big and winding objectsRequirementsAStarDistinstallation.InstallationYou can installMerge StarDist MasksviapipfromPyPI:$pipinstallmerge-stardist-masksUsagePlease see the EXAMPLE inUsagefor details.ContributingContributions are very welcome.
To learn more, see theContributor Guide.LicenseDistributed under the terms of theMIT license,Merge StarDist Masksis free and open source software.IssuesIf you encounter any problems,
pleasefile an issuealong with a detailed description.CreditsThis project was generated from@cjolowicz’sHypermodern Python Cookiecuttertemplate.
Package: mergexp
MyPy Merge Experimentation LibraryA library for developing Merge experiments in PythonHello worldimportmergexpasmxfrommx.unitimportgb,ms,mbpsfrommx.machineimportcores,memoryfrommx.netimportcapacity,latency# define a topologytopo=mx.Topology('hello mx')# make some devicesa=topo.device('a',cores>2,memory<=gb(4))b=topo.device('b',cores<6,memory>=gb(4))# connect devicestopo.connect([a,b],capacity<mbps(100),latency>ms(5))Hello mobileimportmergexpasmxfrommx.stochasticimportnormal,poissonfrommx.unitimportgb,ms,mbpsfrommx.machineimportcores,memory,arch,armv7,x86_64frommx.netimportcapacity,latencyfrommx.mobileimportcollision,migration# define a topologytopo=mx.Topology('hello mobile')# define a few device typesdefmobile(name):returntopo.device(name,cores==1,memory<gb(2),arch==armv7,)defserver(name):returntopo.device(name,cores>=8,memory>=gb(8),arch==x86_64,)# instantiate devicesmobiles=[mobile('m%d'%i)foriinrange(47)]servers=[server(name)fornamein['s0','s1']]nodes=mobiles+servers# connect devicesnet=topo.connect(nodes,latency==normal(mean=ms(5),variance=1.0),capacity==normal(mean=mbps(15),variance=0.3),collision==poisson(rate=47),migration==poisson(rate=10),)