Saravanan666/pypi-org huggingface dataset:
Package: inkscape-figures
Inkscape figure manager.A script I use to manage figures for my LaTeX documents.
More information in thisblog post.RequirementsYou need Python >= 3.7, as well as a picker. Current supported pickers are:rofion Linux systemschooseon MacOSInstallationYou can install it using pip:pip3 install inkscape-figuresThis package currently works on Linux and MacOS. If you're interested in porting it to Windows, feel free to make a pull request.SetupAdd the following code to the preamble of your LateX document.\usepackage{import}\usepackage{pdfpages}\usepackage{transparent}\usepackage{xcolor}\newcommand{\incfig}[2][1]{%\def\svgwidth{#1\columnwidth}\import{./figures/}{#2.pdf_tex}}\pdfsuppresswarningpagegroup=1This defines a command\incfigwhich can be used to include Inkscape figures.
By default,\incfig{figure-name}make the figure as wide as the page, but it's also possible to change the width by providing an optional argument:\incfig[0.3]{figure-name}.The settings above assume the following directory structure:master.tex
figures/
    figure1.pdf_tex
    figure1.svg
    figure1.pdf
    figure2.pdf_tex
    figure2.svg
    figure2.pdfUsageWatch for figures:inkscape-figures watch.Creating a figure:inkscape-figures create 'title'. This uses~/.config/inkscape-figures/template.svgas a template.Creating a figure in a specific directory:inkscape-figures create 'title' path/to/figures/.Select figure and edit it:inkscape-figures edit.Select figure in a specific directory and edit it:inkscape-figures edit path/to/figures/.Vim mappingsThis assumes that you useVimTeX.inoremap<C-f><Esc>:silentexec'.!inkscape-figures create "'.getline('.').'" "'.b:vimtex.root.'/figures/"'<CR><CR>:w<CR>nnoremap<C-f>:silentexec'!inkscape-figures edit "'.b:vimtex.root.'/figures/" > /dev/null 2>&1 &'<CR><CR>:redraw!<CR>First, runinkscape-figures watchin a terminal to setup the file watcher.
Now, to add a figure, type the title on a new line, and pressCtrl+Fin insert mode.
This does the following:Find the directory where figures should be saved depending on which file you're editing and where the main LaTeX file is located, usingb:vimtex.root.Check if there exists a figure with the same name. If there exists one, do nothing; if not, go on.Copy the figure template to the directory containing the figures.In Vim: replace the current line – the line containing figure title – with the LaTeX code for including the figure.Open the newly created figure in Inkscape.Set up a file watcher such that whenever the figure is saved as an svg file by pressingCtrl + S, it also gets saved as pdf+LaTeX.To edit figures, pressCtrl+Fin command mode, and a fuzzy search selection dialog will popup allowing you to select the figure you want to edit.ConfigurationYou can change the default LaTeX template by creating~/.config/inkscape-figures/config.pyand adding something along the lines of the following:deflatex_template(name,title):return'\n'.join((r"\begin{figure}[ht]",r"    This is a custom LaTeX template!",r"    \centering",rf"    \incfig[1]{{{name}}}",rf"    \caption{{{title}}}",rf"    \label{{fig:{name}}}",r"\end{figure}"))
Package: inkscape-layer-utils
Simple utils to interact with Inkscape SVG images and their layers.
Typical use case is extracting layers from an input SVG or manipulating attributes of elements in an image
(e.g. coloring certain elements).Take the following multilayer image as an example:The architecture of the image can also be visualized like this:Or as a tree:The utilities can be used as a library or command line tool. Take a look at the examples section for further explanation.ExamplesAll examples can be found in theexamples/directory.
Package: inkscape-openscad-dxf
Seehttp://www.thingiverse.com/thing:14221InstallationSimply copy the appropriate files (openscad_dxf.inxand theopenscad_dxffolder)
to the installation directory. Install to your Inkscape global installation’sextensionsdirectory or to your local user’s inkscape extensions directory. The per platform
installation directories can be found below. If you havepipand want to try an
even easier (but experimental) installation method you can try usingpip install--target=<installation_dir>inkscape-openscad-dxf. If you do use
this method, do not use a~to refer to your home directory. Some versions ofpipwill misinterpret it and create a directory called~in the current
directory.WindowsGlobal-C:\ProgramFiles\Inkscape\share\extensionsLocal-C:\Documentsand Settings\User\Application Data\Inkscape\extensionsLinuxGlobal-/usr/share/inkscape/extensionsLocal-$HOME/.config/inkscape/extensionsOS XGlobal-/Applications/Inkscape.app/Contents/Resources/extensionsLocal-$HOME/.config/inkscape/extensions
Package: inkscape-qrcode
QR Code generator for InkscapeWhile Inkscape provides a QR Code generator, this extension provides slightly
more options (i.e. generation of Micro QR Codes and an optimal error correction
level) and should be standard-conform.This Inkscape extension includesSegno, a
BSD-licensed, pure Python library which implements theISO/IEC 18004:2015(E)standard for QR Codes.InstallationUsepipto install inkscape-qrcode from PyPI:$ pip install --update --target=<target_dir> inkscape-qrcode<target_dir>should refer to an absolute path, see below for typical
installation directories.Alternatively copy theinkscape_qrcode.inxand theinkscape_qrcodedirectory into the target directoy.The QR Code generator should appear in the menuExtensions > Render > Barcode > QR Code (Segno)Inkscape extension pathOS Xglobal: /Applications/Inkscape.app/Contents/Resources/extensionslocal: $HOME/.config/inkscape/extensionsLinuxglobal: /usr/share/inkscape/extensionslocal: $HOME/.config/inkscape/extensionsWindowsglobal: C:\Program Files\Inkscape\share\extensionslocal: C:\Documents and Settings\User\Application Data\Inkscape\extensionsChanges0.1.7 - 2018-03-23Attempt to make the package installable via pip >= 7 again.0.1.6 - 2018-03-21Updated docs and provide an additional zip file0.1.5 - 2018-03-13Updated Segno to version 0.2.7Fixed #1 “Support for Structured Append”Fixed #2 (avoid exceptions if a Micro QR Code is chosen)0.1.4 - 2017-01-31Updated Segno version to 0.2.4 to avoid problems with Micro QR Codes0.1.3 - 2016-09-15Fixed inkscape_qrcode.inx (pointed to a wrong path)Fixed Python packaging0.1.2 - 2016-09-15Updated underlying Segno version to 0.2.0 since
the previous version may create invalid QR Codes if “error boost” is
enabled0.1.1 - 2016-09-07Initial release
Package: inkscape-svg-layer-extractor
# Inkscape svg layer extractorSmall script to extract layers from inscape svg## Setup environmentTo setup a development environment and install all requirements run the following commands (example for windows):python -m venv venv
venv/Scripts/activate
python -m pip install -r requirements.txt## Build and deploy### Buildpython setup.py sdist bdist_wheel### DeployTestPyPI:python -m twine upload –repository-urlhttps://test.pypi.org/legacy/dist/*PyPi:python -m twine upload dist/*
Package: inkslab
InkSlabInkSlabsimulates the electromagnetic properties of 3D and 2D multi-layered structures with in-plane periodicicy, such as gratings, photonic-crystal slabs, metasurfaces, vertical-cavity or photonic-crystal surface emitting lasers (VCSEL, PCSEL), (patterned) solar cells, nano-antennas, and more.Internally, InkSlab implements rigurous couled-wave analysis (RCWA), a. k. a. Fourier Modal Method (FMM).InkSlab can calculate:the reflection, transmission, and the absorption of the structurethe total and by-order power fluxes of the propagating and the evanescent waves in each layerelectric and magnetic field amplitudes at any locations in the structure,band-structures based on the determinant of the scattering matrix of the structure.Features of InkSlab:It supports efficient and flexible parameter-scanning. You can change part of your sturcture such as the shapes and sizes of some patterns, or some material parameters. InkSlab only recalculates the modified parts and produces the final results efficiently.It allows both tensorial permittivities and tensorial permeabilities, such as in anisotropic, magneto-optical, or gyromagnetic materials.It can calculate the determinant of the scattering matrix on the complex frequency plane.Pre-defined shapes of patterns can be used, including rectangular, parallelogram, disk, ellipse, 1D, and polygons. Closed-form Fourier transforms and corrections for Gibbs phenomena are implemented.It is fully 3D.It is written in pure python, with heavy-lifting done in numpy and scipy.Quick StartInstallation:$ pip install InkSlabOr,$ git clone git://github.com/alexsong/InkSlab
$ pip install .UsageTheexamplesfolder contains various self-explaining examples to get you started.Dependenciespython 3.6+numpyscipyUnits, conventions, and definitionsUnit systemWe adopt a natural unit system, where vacuum permittivity, permeability, and light speed are $\varepsilon_0=\mu_0=c_0=1$.Sign conventionSign conventions in electromagnetic waves:
$$e^{i(kx-\omega t)}$$
where $k$ is the wavevector, $x$ is spatial location, $\omega$ is frequency, $t$ is time.By this convention, a permittivity of $\varepsilon_r + i\varepsilon_i$ with $\varepsilon_i>0$ means material loss, and $\varepsilon_i<0$ means material gain.Coordinates and incident angles(InkSlab,Incident $\bm{k}$ onslabs.)CitingIf you find InkSlab useful for your research, we would apprecite you citing ourpaper. For your convenience, you can use the following BibTex entry:@article{song2018broadband,
  title={Broadband Control of Topological Nodes in Electromagnetic Fields},
  author={Song, Alex Y and Catrysse, Peter B and Fan, Shanhui},
  journal={Physical review letters},
  volume={120},
  number={19},
  pages={193903},
  year={2018},
  publisher={American Physical Society}
}
Package: inkster
Welcome to Inkster!InstallationsIf you would like to install inkster just run the command in a command prompt:PythonpipinstallinksterJavaScriptnpminstallinkster-jsExtra InformationHere is some extra information on inkster.Categories/FeaturesHere are some features for inkster.EasyEducationalSocials/LinksHere are some things that you can contact us with.Email:InksterPY@protonmail.comDiscord Server:https://discord.gg/HUFtMszDocumentation:https://onyocoder.github.io/inkster-documentation/PyPi:https://pypi.org/project/inkster/npmjs:https://www.npmjs.com/package/inkster-jsContributorsOnyo#8502 -> Creator of Inkster. (Github: OnyoCoder)Lumi#1930 -> Python Version Contributor. (Github: Lumi-Sepiolidae)Abxy#4576 -> Python & JS Version Contributor. (Github: AbxyPlayz)LicenseCopyright 2020 OnyoCoderPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Package: inkster-OnyoCoder
Welcome to Inkster!InstallationsIf you would like to install inkster just run the command in a command prompt:PythonpipinstallinksterJavaScriptnpminstallinkster-jsExtra InformationHere is some extra information on inkster.Categories/FeaturesHere are some features for inkster.EasyEducationalSocials/LinksHere are some things that you can contact us with.Email:InksterPY@protonmail.comDiscord Server:https://discord.gg/HUFtMszDocumentation:https://onyocoder.github.io/inkster-documentation/PyPi:https://pypi.org/project/inkster-OnyoCoder/1.0.1/npmjs:https://www.npmjs.com/package/inkster-jsContributorsOnyo#8502 -> Creator of Inkster. (Github: OnyoCoder)Lumi#1930 -> Python Version Contributor. (Github: Lumi-Sepiolidae)Abxy#4576 -> Python & JS Version Contributor. (Github: AbxyPlayz)LicenseCopyright 2020 OnyoCoderPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Package: ink-wizard
Ink WizardInk Wizard is a CLI tool used to scaffold Flipper, PSP-22, PSP-34, PSP-37 smart contracts. CLI will ask user on what kind of functionality user needs. It will scaffold smart contracts based on user options.Ink Wizard usesOpenBrushsmart contracts. Once you scaffold smart contracts, you can go to the Open Brush docs:https://docs.openbrush.io/for further steps.InstallationYou can installink-wizardeither via pip or via homebrew(recommended).
If you want to install using pip, it is recommended to use virtualenv.virtualenv.venvsource.venv/bin/activate
pipinstallink-wizardIt you want to install it using homebrew, run the following commands:brewtapavirajkhare00/homebrew-ink-wizard
brewinstallink-wizardJust typeink-wizard, you are good to go.UsageIn order to use ink-wizard, you should havecargo-contractinstalled. Run the following command to install it:cargoinstallcargo-contract--version2.0.0-betaWhen a smart contract is scaffolded, you can go to the directory and can runcargo-contract contract build. It will generate .contract, wasm and metadata.json file that you can use.TestingYou can test it either via running./test.shfile or you can run tests inside a docker container viadocker build .To run tests locally:virtualenv.venv
pipinstall-rrequirements.txt
./test.shOr you can rundocker build .to run the tests.
Package: inkydev
Inky Development BoardPre-requisitesYou must enable:i2c:sudo raspi-config nonint do_i2c 0spi:sudo raspi-config nonint do_spi 0You can optionally runsudo raspi-configor the graphical Raspberry Pi Configuration UI to enable interfaces.InstallingStable library from PyPi:Just runpip3 install inkydevIn some cases you may need to usesudoor install pip with:sudo apt install python3-pipLatest/development library from GitHub:git clone https://github.com/pimoroni/inkydev-pythoncd inkydev-pythonsudo ./install.shChangelog0.0.2Fix i2c address0.0.1Initial Release
Package: inkyphat
1.0.1BugFix: Fixed colour support issues with V1 Inky pHAT1.0.0Feature: Added support for Black/Yellow and Black0.1.1Removed GPIO.cleanup call for Inky pHAT v2, so subsequent display updates will work0.1.0Added support for new display on Inky pHAT v20.0.2Tweaked LCD init to run every updateAdded LCD deinit to switch off driver ICAdded clear method0.0.1Initial release
Package: inky-pi
This program generates weather and UK train data for output to various displays (inkyWHAT e-ink display, terminal, desktop png).Free software: MITDocumentation:https://inky-pi.readthedocs.io.FeaturesDisplays weather data using Weather Underground APIDisplays UK train data using National Rail APICreditsThis package was created withCookiecutterand thebriggySmalls/cookiecutter-pypackageproject template.
Package: inky-toolkit-stezante7
Inky ToolkitInky Toolkit is a set of utilities for Inky pHAT display that I created to use on a few of my RasberryPi projects.How to use itTo install it run:pip install inky-toolkit-stezante7InkyTextwrite_text:display a text message, automatically taking care of number of words/rows to display.
If there is not enough space for the text to be displayed, a postfix symbol (by default "...") will show in the bottom right of the screen.Examplefrominky_toolkitimportinkytextinkyT=inkytext.InkyText(color="red",font_type=FredokaOne,font_size=20,more_text_postfix="...")inkyT.write_text("One love, one blood, one life, you got to do what you should. One life with each other: sisters, brothers. One life, but we're not the same. We get to carry each other, carry each other")MoreThis Python library uses inky official library.
More details about inky and inkyphat libraries here:https://pypi.org/project/inky/https://github.com/pimoroni/inky-phathttp://docs.pimoroni.com/inkyphatLicenseThis library is available under the MIT license.
Package: inline
Embed inline C / C++ source codes in Python.Usageimportinlinec=inline.c(r'''
int add(int a, int b) {
    return a + b;
}
''')c.add(40,2)importinlinecxx=inline.cxx(r'''
extern "C" {
    int add(int a, int b) {
        return a + b;
    }
}
''')cxx.add(40,2)Installpipinstallinlinegitclonehttps://github.com/manicmaniac/inline.gitcdinlinepythonsetup.pyinstall
Package: inline_files
Inline FilesThis Python package allows us to read and interact withinline files.An inline file is a file stored within another file. This parent file can be any kind of file, but a .py file is preferred due to how an inline file is defined.DefinitionWe use the following syntax to define an inline file:r"""ILF__ID1__Hello World!__ID2:json__{"hello": "world"}"""In other words, an inline file must be defined inside a multiline comment, or docstring, and must be preceded by__[ID]__, where[ID]is the inline file's name. In the example above, there are two inline files, "ID1" and "ID2", with "ID2" having an optional extension.If an inline file is defined with an extension, the file will be read according to that extension. For example, a JSON file will be processed using thejsonmodule. Files without an extension are treated as text files. Currently, the module supportsjson,yamlandxmlextensions. Below is another example of an inline file with an extension.r"""ILF__file1:yaml__filename: file1extension: yamlModuleThe module contains a constructor responsible for reading a file and extracting its inline files. By default, this file will be the file that calls the constructor, but another file can be specified.The module's main method,get_file(), will return an inline file's contents, which can be a string or a structure, if the file has one of the supported extensions.There is also aget_extension()method, used to retrieve an inline file's extension.Usage examplefrominline_filesimportInlineFilesilf=InlineFiles()i=ilf.get_file("ID1")print(i)r"""ILF__ID1__Hello World!__ID2__def ping():return "pong""""Usage example with extensionsfrominline_filesimportInlineFilesilf=InlineFiles()j=ilf.get_json("J")print(j["filename"])r"""ILF__J:json__{"filename": "J","extension": "json"}"""
Package: inline-html
inline-htmlThis script parses an input HTML andinlines all images in <img> tags with data-uriinlines all external stylesheets references using <link rel=”stylesheet” type=”text/css”…>replaces all CSS references to external files (url(..)) with data-uriRequirementsworks with Python 2.7 and 3.4/3.5Usagebin/inline-html--in-filein.html--out-fileout.htmlLicenseGPL 2 (see LICENSE.txt)Repositoryhttps://github.com/zopyx/inline-htmlBugtrackerhttps://github.com/zopyx/inline-html/issuesAuthorAndreas Jung/ZOPYXinfo@zopyx.comwww.zopyx.com
Package: inline-importer
InlineImporterInlineImporter is a library for python projects that uses the PEP 302 import protocol to inline libraries into a script.Why?Because we can.But in all seriousness, this came out from spending days managing adhoc scripts that shared a lot of functionality.
For ease of development, it would have been nice to extract the common pieces to a common library, but that would have meant distributing a whole directory and managing import paths on the destination systems versus a single self-contained file.How it worksPEP 302 defined a protocol for managing module imports.
The protocol defines two components:Finders andLoaders.
The Finder is responsible for, unsurprisingly, finding modules.
If a Finder finds a module, i.e.knowswhich loader can load a module, it returns aModuleSpec.
This ModuleSpec gives details on some parameters of the module, such as filename and package, and states which Loader can load the module.
The Loader is, as you've guessed it, responsible for loading modules into the environment.
It does so by first creating a module object, which the python machinery places into thesys.modulesdictionary, then executing the module code.
An object that can both Find and Load is called anImporter.InlineImporter works by placing the source code of modules in a dictionary, keyed by module name.
The finder searche the dictionary for a key matching the given module name.
If found, it returns a ModuleSpec with itself listed as the loader.
The loader simply compiles the inlined source code to python bytecode, and executes it as the normal python loader does.UsageIncludeinline-importerin your development dependencies.inline-importeris not a runtime dependency, but a build-time dependency instead.Build your final script usinginline-pythonorpython -m inline_importerand distribute the output of that instead.Your users will not requireinline-importer.
However, if you have dependencies on other modules, your users will have to install those.What's nextWhile the importer is built, the rest of the machinery isn't.Importer with PoC.Script to collect all the modules to be inlined and build the dictionary.Script that can combine the importer and the modules.Support for inlining distributed python libraries.Support for pre-compiled bytecode.
Package: inline-model-metrics
inline_model_metricsA Met Office tenten project Rose app to run model metrics inline with a climate model.Documentation is available from:https://inline-model-metrics.readthedocs.io/The code consists of a preprocessor (currently specific to the UM output) which takes the input data from a source (model, reanalysis etc) and produces variables and filename suitable for use by the inline codes.There are initially two components of the inline tracking, tempest_cyclone and tempest_atmos_river. Tempest_cyclone uses the cyclone-tracking capability of TempestExtremes, which tempest_atmos_river uses TempestExtremes to track atmospheric rivers.Other inline metrics code can be included here, will required changes to the pre-processing to provide the required input files/variables.Currently the code saves and archives tracked output to the Met Office MASS storage. This needs to be split out into a postprocessor code to be more generic.