Saravanan666/pypi-org huggingface dataset:
Package: make-c
make_cA script to generate a simple C program with a few basic includes and amain(). Then it opens the file in your editor of choice placing the cursor at the proper line and column to start adding code.Supported editors include:vimSublimeText (subl)TextMate (mate)Visual Studio Code (code)nanoemacsInstalling$cdmake_c$python3setup.pyinstallRunningHelp output:$make_c--helpusage: make_c [-h] [--list-editors] [--version] [--editor EDITOR][--skip-editor] [--tabs] [--generate-makefile][filename]make_c: A utility to create a simple C source file with a main and open it inan editor. version 0.1.5positional arguments:filename             Name of the source file to create.optional arguments:-h, --help           show this help message and exit--list-editors       List known editors.--version            Print version string and exit.--editor EDITOR      Editor to use to open the resulting source file.--skip-editor        Create the source file but don't open it in an editor.--tabs               Use tabs instead of spaces.--generate-makefile  Create a makefile to build the program.List available editors:$make_c--list-editorsKnown editors:vim: Vi IMproved, a programmer's text editorsubl: Sublime Text 3mate: TextMate 2code: Visual Studio Codeemacs: GNU project Emacs editornano: Nano's ANOther editor, an enhanced free Pico cloneIf an editor isn't provided on the command line, it can be specified using an environment. The variables that are used are, in the following order:MAKE_C_EDITOREDITORVISUALCreating and editing a file:#Createfoo.candeditinthedefaulteditor,VIM:$make_cfoo.c#Editusing$MAKE_C_EDITORenvironmentvariabletospecifyeditor:$exportMAKE_C_EDITOR=/usr/local/bin/emacs$make_cfoo.c#IfMAKE_C_EDITORisn'tset,EDITORandVISUALrespected,inthatorder:$unsetMAKE_C_EDITOR$exportEDITOR=/usr/bin/vim#EditinSublimeTextinstead:$make_cfoo.c--editor=subl#GenerateamakefileinadditiontotheCfile.$make_cfoo.c--generate-makefileAdding editor supportTo add additional editors, extend theCProgramclass and override:TheEDITORclass variableTheDESCRIPTIONclass variableThegenerate_editor_command()instance methodThe string representation for--list-editorsis automatically generated by the superclass fromEDITORandDESCRIPTION.Thegenerate_editor_command()method should return anargvthat represents that editor's commandline incantation in list form suitable for consumption bysubprocess.Popen(). For example, if your editor takes a--lineand--columnargument, you would return:defgenerate_editor_command(self):return[self.generate_editor_arg0(),"--line","%d"%self.edit_line,"--column","%d"%self.edit_column,self.filename]
Package: makecite
makeciteGenerate latex + bibtex citation commands by looking at what packages are imported in your Python code.InstallationThe recommended installation procedure is to usepip:pip install makeciteTo install the development version, you canpipinstall directly from this
GitHub repository with:pip install git+https://github.com/adrn/makeciteExamplesGet bibtex records for packages used in a single script, and store to a.bibfile in the current working directory:makecite my_script.pyGet bibtex records for packages used in all.pyscripts in the current directory and store to a.bibfile called "software_refs.bib":makecite --ext=.py -o software_refs.bib .Get bibtex records for packages used in all.pyscripts and IPython notebook,.ipynb, files in two pathsmy_codeandmy_notebooks:makecite --ext=.py --ext=.ipynb my_code my_notebooksGet bibtex records for packages used in all.pyscripts in the current directory and output a AAS journals\software{}tag:makecite --ext=.py --aas .Citing this scriptIf you use this script, please consider citingour Zenodo
record:@misc{makecite:2018,
  author       = {Adrian Price-Whelan and
                  Alexandar Mechev and
                  jumeroag},
  title        = {adrn/makecite: v0.1},
  month        = aug,
  year         = 2018,
  doi          = {10.5281/zenodo.1343295},
  url          = {https://doi.org/10.5281/zenodo.1343295}
}LicenseCopyright 2018 the developers.makeciteis free software made available under the MIT License. For details
see theLICENSEfile.
Package: make-clean
If one’d like to make sphinx repository with github-pages sumodule, one shoud
exclude rm_build/html/.git.make-cleanpackage provide to keep.gitfile with it.Switchmake.batfile clean to below:if "%1" == "clean" (
      .\path\to\make-clean.exe _build -i _build\html\.git _build\html\.gitignore
      goto end
)UsageThis package has amake-cleancommand.>.\venv\Scripts\make-clean.exe -h
usage: make-clean-script.py [-h] [--clean-ignore CLEAN_IGNORE]
                            [-i [IGNORE [IGNORE ...]]]
                            TARGET_DIR [TARGET_DIR ...]

clean target dir without ignores

positional arguments:
  TARGET_DIR            dir to remove recursively

optional arguments:
  -h, --help            show this help message and exit
  --clean-ignore CLEAN_IGNOREdir/file file to ignore from remove
  -i [IGNORE [IGNORE ...]], --ignores [IGNORE [IGNORE ...]]dir/file to ignore from removeTestI usepytest.>C:\path\to\python\3.X.Y\python.exe -m venv --clear venv>.\venv\Scripts\python.exe setup.py develop easy_install make-clean[test]>.\venv\Scripts\python.exe -m pytest
Package: make-colors
make_colorsThis is make command line text coloredInstallingInstall and update usingpip_:.. code-block:: text$ pip install make_colorsmake_colors supports Python 2 and newer, Python 3 and newer, and PyPy... _pip:https://pip.pypa.io/en/stable/quickstart/A Simple ExampleWhat does it look like? Here is an example of a simple make_colors program:.. code-block:: pythonfrom make_colors import make_colors

print make_colors('This is White on Red', 'white', 'red')
print make_colors('This is Light White on Light Red', 'lightwhite', 'lightred')
print make_colors('This is Light White on Light Magenta', 'lw', 'm')
print make_colors('This is Light White on Light Blue', 'lw', 'bl')And what it looks like when run:.. code-block:: text$ python hello.py 
This is White on Red
This is Light White on Light Red
This is Light White on Light Magenta
This is Light White on Light BlueSupportPython 2.7 +, Python 3.xWindows, LinuxLinksLicense:BSD <https://github.com/licface/make_colors/blob/master/LICENSE.rst>_Code:https://github.com/licface/make_colorsIssue tracker:https://github.com/licface/make_color/issues
Package: make_colors_tc
make_colors_tc==================This is make command line text coloredInstalling----------Install and update using `pip`_:.. code-block:: text$ pip install make_colors_tcmake_colors_tc supports Python 2 and newer, Python 3 and newer, and PyPy... _pip: https://pip.pypa.io/en/stable/quickstart/A Simple Example----------------What does it look like? Here is an example of a simple make_colors_tc program:.. code-block:: pythonfrom make_colors_tc import make_colorsprint make_colors('This is White on Red', 'white', 'red')print make_colors('This is Light White on Light Red', 'lightwhite', 'lightred')print make_colors('This is Light White on Light Magenta', 'lw', 'm')And what it looks like when run:.. code-block:: text$ python hello.pyThis is White on RedThis is Light White on Light RedThis is Light White on Light MagentaSupport------*   Python 2.7 +, Python 3.x*   Windows, LinuxLinks-----*   License: `BSD <https://github.com/licface/make_colors_tc/blob/master/LICENSE.rst>`_*   Code: https://github.com/licface/make_colors_tc*   Issue tracker: https://github.com/licface/make_color/issues
Package: makeCourse
To use it, define a sub-class of the classSessionwith the methodsmakeandfilesclass CM(Session):def make(self, options):print( “ - build handout”)
self.writeFileFromTemplate( ‘CM.tex’, self.name+’.tex’, {} )
runCommand( [‘pdflatex’, self.name+’.tex’], 2 )def files(self):return [ self.name+’.pdf’ ]
Package: makedalytics
makedalyticsCurrrent version:A python library for data analytics on data including text and/or images with an emphasis on scientific reproducibility. There is only a dependancy on pip (although some versions of pip may have dependancies). Please note the library is currently evolving, and I am testing new functions.  At present the tested functional functions of makedalytics are the following:general functionsremind_ds_libraries():This function takes no arguments and reminds what libraries you may want to import by printing them.packages_to():This function takes no arguments and displays what your system and packages are, and writes them to a file called "requirementscontext.txt"check_requirements(test2list):Function takes arguments of a list e.g. ['absl-py==0.7.0','aiofiles==0.4.0','altair==4.1.1'] of packages you will have as requirements as test2list.
Returns which you are missing in your machine environment. Missing may be a difference of version number.biopsy_df(start_row,end_row,column, df):Function takes arguments of starting row (start row), end row and column or [columns] listed in []. Returns only specified area of dataframe.understand_df(df):This function takes the dataframe as an argument, and produces information on number of columns, rows, data types, existance of nulls etc.pristine(df,axis_to_zap, modify_index):Takes arguments of dataframe(df), 'columns' or 'rows' (axis to zap) and modify_index which can be set to true or false.
Returns a cleaned dataframe without columns or rows that have nulls.text and NLP related functionsshow_duplicates(df):If there are duplicates it will show and tell.tag_text(text, column):Shows you where (what row) certain text is in a columns. Works like nuclear medicine tagging.wordish_count(str):Counts split up elements of a string. In the case ofan English sentance that is a count for each word with some counting of certain punctuation..image related functionscreate_matrix(width, height, default_element):Helper function to create matriceswidth' xheight' y
fills with default element which can be set to a number or a boolean (True or False)
Package: make-datasetfolder
make-datasetfolderA utility to create a PyTorch DatasetFolder from any .csv or .tsv file with file path and class data.Use CaseIn PyTorch, theDataFolderandImageFolderclasses provide a convenient interface for computer vision datasets structured as such:root/class_x/xxx.ext
root/class_x/xxy.ext
root/class_x/xxz.ext

root/class_y/123.ext
root/class_y/nsdf3.ext
root/class_y/asd932_.extThis utility transforms any dataset with a table containing file paths and class labels into this format.ExampleSuppse you havedataset.csvof the form:sample,class,some_feature,another_feature
img-0001.jpg,0,foo,bar
some/relative/directory/img-0002.jpg,1,foo,bar
...Runningmake-dataset-folder -p sample -l class dataset.csv outputwill create a folderoutputwith the following structure:output/0/img-0001.jpg
output/1/img-0002.jpg
...Using the-mflag will move images rather than copy them. This could be useful for large datasets that shouldn't be duplicated on disk.Usageusage: make-datasetfolder [-h] [-p PATH_COLUMN] [-l LABEL_COLUMN] [-m] [-f]
                          [-t THREADS]
                          input output

positional arguments:
  input                 Path to input .csv or .tsv
  output                Path to output directory.

optional arguments:
  -h, --help            show this help message and exit
  -p PATH_COLUMN, --path-column PATH_COLUMN
                        Column name or index with file paths (default: 0).
  -l LABEL_COLUMN, --label-column LABEL_COLUMN
                        Column name or index with labels (default: 1).
  -m, --move            Move files instead of copying.
  -f, --force           Overwrite output directory if it already exists.
  -t THREADS, --threads THREADS
                        Number of threads to use (default: number of CPU
                        cores)
Package: make-deb
make-deb: Helper Tool for getting your python code into debian packages=============================================Make-deb is a simple tool that generates Debian configuration based on your setuptools configuration and git history. When run, it will create a Debian directory at the root of your python project with the necessary files to build your package into a Debian package using `dh-virtualenv <https://github.com/spotify/dh-virtualenv>`_.. code-block:: bash$ cd /my/python/repository$ make-deb'debian' directory successfully placed at the root of your repositoryIf setuptools does not have complete information, make-deb will ask for additional information (for example, maintainer email). After initialization, a directory named "debian" will be reated at the root of your repo. Assuming you have dh-virtualenv installed, you should be able to simply create a .deb from your python project by running the following command at the root of your project... code-block:: bash$ dpkg-buildpackage -us -ucInstallation------------To install make-deb:.. code-block:: bash$ pip install make-debDocumentation-------------Generating your Debian configuration can be run from any operating system. However, in order to build a debian package, you must be on a Debian-based operating system and have dh-virtualenv installed. In the future, we plan to support Vagrant integration to build packages from any platform.
Package: makedeb-srcinfo
makedeb-srcinfomakedeb-srcinfois a library for Rust and Python to parse makedeb-style.SRCINFOfiles.The library itself is written in Rust, and bindings for Python are made possible viaPyO3andMaturin.UsageInstallationYou'll first need to install the library before using it. Installation instructions will change depending on if you're using the Rust or Python library:Rustcargoaddmakedeb-srcinfoPythonpipinstallmakedeb-srcinfoUsing the libraryThe Rust and Python libraries are designed to look quite similar to each other, both interfaces use the same function/class names, and should only differ in how the languages themselves are designed.RustSee the documentation onDocs.rsfor full usage instructions.usemakedeb_srcinfo::SrcInfo;usestd::fs;fnmain(){letfile=fs::read_to_string(".SRCINFO").unwrap();letsrcinfo=SrcInfo::new(&file).unwrap();// Get the package base.println!("The package base for this package is {}.",srcinfo.get_string("pkgbase").unwrap());// Get any dependencies.matchsrcinfo.get_array("makedepends"){Some(makedepends)=>{println!("Found {} build dependencies:",makedepends.len());fordepinmakedepends{println!("- {}",dep);};},None=>{println!("Found no dependencies.");}}}PythonNote
Help is currently needed to get Python documentation automatically published on new releases. Please seehttps://github.com/makedeb/makedeb-srcinfo/issues/3if you'd like to help.#!/usr/bin/env python3frommakedeb_srcinfoimportSrcInfowithopen(".SRCINFO")asfile:data=file.read()srcinfo=SrcInfo(data)# Get the package base.pkgbase=srcinfo.get_string("pkgbase")print(f"The package base for this package is{pkgbase}.")# Get any dependencies.makedepends=srcinfo.get_array("makedepends")iflen(makedepends)==0:print("Found no build dependencies.")else:print(f"Found{len(makedepends)}build dependencies:")fordepinmakedepends:print(f"-{dep}")
Package: makeelf
MakeELF is a Python library to parse, modify and create ELF binaries. It provides following features:easy to use, standard Python interfacereading existing ELF files to Python representationmodification of every aspect of ELF format structuresability to skip any validation to test other parsers for potential errorscreating new valid ELF files with just one stepeasy serialization of every structure present in ELF file
Package: make.env
make.envInfusesGNU makewith the ability to read .env filesMotivationOften when working with Makefiles, you might have the need to read environment variables from a.envfile, and havemaketreat them as if the environment variables were actually variables in the Makefile.The mostpopularsolution is to import the.envfile into the Makefile, and then export every varaible declared so far:include .envexportThe problem with this is that it is prone to errors. For example, if your.envfile contains the following:APP_PASSWORD='8oyy!r#vNpRy2TT'The variableAPP_PASSWORDwill be exported with the value'8oyy!r. Likewise, if your.envfile contains the following:APP_PASSWORD='Qy%$%J9$rD#jqVw'The variableAPP_PASSWORDwill be exported with the value'Qy%J9D.What's more, any attempt to use this variable will result in an error inmakeconcerning the lack of a closing quote:unexpected EOF while looking for matching `''ExplanaitionIn both cases,APP_PASSWORDcontained values whichmaketreats specially.The#is used to start comments, therefore as soon as make sees a#, it will ignore the rest of the line.The$is used to reference a variable or function, so when make sees a$, it will treat whatever comes after it as a variable or function reference.The solutionThat's where this wrapper comes in.It allows us to read a.envfile and pass them tomakein a way that allowsmaketo treat them as variables and copy their values literally rather than attempting to interpret them.
Package: make-even-odd
Make numbers even/oddfrommake_even_oddimportmake_even_ceil,make_even_floor,make_odd_ceil,make_odd_floorprint(list(make_even_ceil(*[198,7,12,3])))print(list(make_even_floor(*[198,7,12,2,1])))print(list(make_odd_ceil(*[198,7,12,3])))print(list(make_odd_floor(*[198,7,12,2,1])))[198,8,12,4][198,6,12,2,0][199,7,13,3][197,7,11,1,1]
Package: make_excel
A script to create excel from Python dictionary data.Example usage:Example usage -> make_excel({‘data’: [1, 2, 3, 4, 5, 6, 7], ‘data1’: [‘apples’, ‘oranges’],  ‘data3’: 1}, full_filepath=’output_NsURCM’)This will create an excel of name ‘output_NsURCM.xls’ with the data supplied to it as Python dictionary.
Package: make-fastapi-app
createfastapiappFastAPI app creation templateTo develop software, run. ./activate.shWindowsThis environment requires you to usegit-bash.LintingRun./lint.shto find linting errors usingpylint,flake8andmypy.Versions1.0.5: Fixes adding +x to sh files1.0.4: Allows empty github url1.0.3: Adds post install instructions to the command line.1.0.2: Remove trailing.gitand/for githurl repo input1.0.1: Adds +x to all shell scripts1.0.0: Initial commit
Package: makefile2dot
Visualize Makefile Dependency Graphsmakefile2dotproduces a Graphvizdotgraph from a Makefile. To run it,
installgraphvizandpython. This version runs on python 3.# apt-get install graphviz python$pipinstallmakefile2dotUsagemakefile2dotreads theMakefilein the current working directory using the
same lookup rules thatmakedoes (it actually usesmaketo parse theMakefile). By default, it writes the resultingdotgraph tostdout, which
can be read in bygraphviz. So a nice trick is to pipe output frommakefile2dotdirectly in todot.For example:$makefile2dot|dot-Tpng>out.pngIf you just want to see the graph without saving it, you can provide the--viewflag:$makefile2dot-vYou can select the graph orientation so that it is drawn from top to bottom
(TB), bottom to top (BT), left to right (LR) or right to left (RL). For
example:$makefile2dot-v--directionLRdraws the graph from left to right, rather than the default bottom to top.Normal targets are drawn as rectangles, and.PHONYtargets are drawn as
circles.TipsTo test this project in the source directory, add the source directory to the
python path:$exportPYTHONPATH=$(pwd)
Package: makefile-help
Makefile helpThis small package helps by generating colourful help for Makefiles.Makefile helpWhy?UsageInstallationWhy?I often store useful commands in Makefiles and then promptly forget them.UsageAt the top of a Makefile add the following (assuming makefile-help is installed in the current virtual env):help: # @@Utils@@ Display help and exit
	python -m makefile_helpComment each command with a description and optionally a section using@@The makefile_help script will then generate a help string.Installationpip install makefile-help
Package: makefilemenu
makefilemenuProvide a console menu interface for a Makefile.The canonical use of the system is to have a quick and stupid way to
document commands one would like to run, while at the same time making
it extremely easy to run, without memorizing anything.  Because I'm
(ab)using "make", it is also very easy to run a particular target from
the command line without using the menu system.Of course nothing stops you from using the tool for a more regular
Makefile.DescriptionThis is a very simple system to create a menu from the Makefile.  You
annotate your Makefile as follows:# menu title: My title

# menu item: a
.PHONY: hello
hello:
	echo hello world

# menu item: b
.PHONY: foo
foo:
	echo foo bar

# menu comment: Section 2

# menu item: c
.PHONY: world
world:
	echo 42In other words, just add "# menu title" in the file once, and "# menu
item: <ch>" to create a command from a make file target.  Then
running "makefilemenu Makefile" shows:===== My title =====
a: hello  b: foo  q: quit
Section 2
c: world

Choice:You can choose one of the commands, and the corresponding target is
made.  Note that a "quit" command is automatically added to quit the
program.  If you don't want it, you can use "--quit_cmd ''" to disable
it.  In such case, to exit, press Control-C or Control-D.Regular "make" usage is not interfered, so you can still say "make foo
hello" on the command line to make both targets.You can also add a few clauses to the Makefile, so that running
makefilemenu is the default target, and your file can be simply
executed:#!/usr/bin/env -S make -f
# -*- makefile -*-

thisfile := $(lastword $(MAKEFILE_LIST))

.PHONY: menu
menu:
	@makefilemenu $(thisfile)VariablesTwo types of variables may be set usingmakefilemenu: environment
variables and Makefile variables.  Environment variables are set using# menu envvar, like this.# menu envvar var
# menu envvar d:varThis adds an initially unset variablevar, and a menu entry to set
the variable.  In the first case the menu entry is invoked byvar,
in the second case it is byd.You can set the initial value of the variable to bevalas follows:# menu envvar var=val
# menu envvar d:var=valIn this case, if an empty value is set on the command line, it is
given an empty value (if there is no default value, an empty value
would unset the variable).After the environment variable is given a value, when a command is
invoked the make command is invoked with the environment variable set.You can replaceenvvarbymakevarin the# menudirective above.
In this case, the environment variable is not used, but instead themakecommand is invoked like:make var=val ...
Package: makeflaskreact
Getting Started with makeflaskreactThis app makes it easier for your to build a react flask application.Flask does not directly work with React in development as it needs cors to handle the cross-origin error on your local react app. So, this boiler plate reduces the time spent creating a simple react and flask app.Requirements areyarnornpmandpython>=3.6.0To install:$ pip install makeflaskreactTo run:$ makeflaskreactoptionally:
add--name PROJECT_NAMEto change the project name fromappto what you want.add--norunorNto run the server and client on exceution of the scriptParametersInputDefaultsname(--name/-A)apprun(--run/-r) (--no-run/-N)True -- will run if --no-run is not presentserver nameserverpython(used to create virtual env and download requirments)pythonhost127.0.0.1port5000react clientno default will ask for either yarn (0.25+) or npm (5.2+)clientclientFinal OutputAssuming standard runmakeflaskreact