Saravanan666/pypi-org huggingface dataset:
Package: convertme
ConvertMe – Ayoyoyo WololoSimple dataset convertor in Python. Currently memory hungry in case of large datasets.InstallationInstall package viapip:$pipinstallconvertmeUse the provided CLI:$ convertme --help
Usage: convertme [OPTIONS]

Options:
-if, --input-format [csv|fimi|cxt|mat|cex]
                                [required]
-of, --output-format [csv|fimi|cxt|mat|cex]
                                [required]
-i, --input TEXT                Input file, skip it for stdin.
-o, --output TEXT               Output file, skip it for stdout.
--input-delimiter TEXT          (CSV) Delimiter of input.  [default: ,]
--output-delimiter TEXT         (CSV) Delimiter of output.  [default: ,]
--objects-col INTEGER           (CSV) Index of column with object labels,
                                typically 0, ignored on default.

--attributes-row INTEGER        (CSV) Index of row with attribute labels,
                                typically 0, ignored on default.

--true-values TEXT              (CSV) Values which will be count as True,
                                comma separated.

--help                          Show this message and exit.Basic usage:Convert simplecsvfile tofimiformat:$convertme-idataset.csv-if=csv-odataset.fimi-of=fimiContent ofdataset.csv:1,0,1,0
0,1,0,1Content ofdataset.fimi:0 2
1 3Supported formatscsvburmeister (.cxt)fimimatlab (version<=7.3)conexp (.cex)DevelopmentClone this repository to the folder, then:# create virtualenv (optional)$mkvirtualenvconvertme-ppython3#if is not actived (optional)$workonconvertme$pipinstall-e.$pythonsetup.pytestHistory0.1.0 (2020-03-24)Supported formats (csv, burmeister, fimi, matlab (version<=7))Basic CLI implemented0.1.1 (2020-04-7)Added Conexp format supportAdded support of Python 3.5, 3.60.1.2 (2020-04-17)Rewritten to bitarray under the hood (less memory needed)0.1.3 (2022-08-10)Fimi: attributes are not required to start from zeroAdded support for Python 3.9, 3.10Drop support for Python 3.50.1.4 (2022-08-10)Fix instalation error
Package: convert-ms
Convert_msUse this package for converting units of time to seconds.What is it?fromconvert_msimportms,checkms("1m")# return 60ms("1h")# return 3600ms("1d")# return 86400check("1m")# return Truecheck("1o")# return FalseHow to use ?fromconvert_msimportms,checkimportasyncioduration="1h"ifcheck(query=duration):awaitasyncio.sleep(ms(query=duration))else:print("you have entered a non-existent unit of time")Formatsseconds, secs, s, m, min, minute, h, hour, d, day, w, week, mon, month, y, yearFind a bug?Reporthere
Package: convertnotes
ConvertNotesThis tool converts your notes from one format/application to another. Currently, the only supported conversion is fromLogseqtoRoam.FeaturesThe primary reason to use this suite of tools is that it does the following:Preserves block referencesFixes date formatting (Daily Notes will work)Converts markdown tables to Roam tablesConverts Logseq properties to Roam attributesEnables uploading assets (images, pdfs, etc) and preserving the links to those assets in your knowledge graphRemoves unecessary Logseq metadata (image sizes, logbook, etc)This makes the transition from Logseq to Roam as seamless as possible.Important NoteWhile I have tested this rather extensively with my own notes, it is entirely possible that I have forgotten something or made a mistake. Use these tools at your own risk and make sure you have everything backed up in case something goes wrong.Installation$pipinstallconvertnotesUpload Assets to Roam ResearchRoam does not provide a convenient way to upload images, however it does allow you to run somewhat arbitrary Javascript which can do the trick.To do this, first you need to enable "user code" in your User settings:Then copythis snippetand paste it anywhere in your Roam notes.When you do this, it will give you a warning like this:Click the button that says you know what you are doing and then restart your Roam graph (restart the app, refresh the page, etc) to make sure that the javascript loads.Once it restarts, run the keyboard shortcutcmd+pto open the command palette. Now just search for "ConvertNotes" and you should see an option like the following:Hit theEnterkey. You will now be prompted to select the files you want to upload. If you are coming from logseq, the files you're looking for are in theassetsdirectory within your graph folder.Selectallof the files that you want which are referenced in your notes and wait for them to upload.Do not navigate or do anything.It might take a while because the files are uploaded in batches. Once they are done you will be prompted to download ametadata JSON file. Save this. You will need it when runningconvertnotesso that the links in your notes can be updated to reference the new files managed by Roam.UsageTo export your notes from Logseq and import them into Roam, first export your notes as JSON from within Logseq (seedocs). Once you have the JSON file, navigate to the file in your terminal and execute a command like the following to convert them to Roam JSON:$convertnotes\--inputfile./logseq.json\--outputfile./roam.json\--metadatafile./metadata.json\--profilelogseqtoroamThen open up Roam, and import the resulting JSON file.
Package: convert-numbers
convert_numbersArabic Persian English Hindi Numbers ConversionInstallationpipinstallconvert_numbersUsageimportconvert_numbers# From Hindi To Englisprint(convert_numbers.hindi_to_english('٨٧٦٥٤٣٢٣٤٥٦٧٨'))#8765432345678# From Englis To Hindiprint(convert_numbers.english_to_hindi('12309876523'))##١٢٣٠٩٨٧٦٥٢٣# From Hindi To Arabicprint(convert_numbers.hindi_to_arabic('٨٧٦٥٤٣٢٣٤٥٦٧٨'))#8765432345678# From Arabic To Hindiprint(convert_numbers.arabic_to_hindi('12309876523'))#١٢٣٠٩٨٧٦٥٢٣# From Arabic To Englishprint(convert_numbers.arabic_to_english('٢٣٤٥٦٧٨٠٩٨٧٦'))#234567809876# From English To Arabicprint(convert_numbers.english_to_arabic('09876523456'))#٠٩٨٧٦٥٢٣٤٥٦# From Persian To Englishprint(convert_numbers.persian_to_english('۵۱۲۳۹۶۰۴۴'))#512396044# From English To Persianprint(convert_numbers.english_to_persian('512396044'))#۵۱۲۳۹۶۰۴۴# From Persian To Hindiprint(convert_numbers.persian_to_hindi('۵۱۲۳۹۶۰۴۴'))#٥١٢٣٩٦٠٤٤# From Hindi To Persianprint(convert_numbers.hindi_to_persian('٢٣٤٥٦٧٨٠٩٨٧٦'))#۲۳۴۵۶۷۸۰۹۸۷۶ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT
Package: convertool
How to Build and Distribute a CLI Tool with PythonRequirementsvirtualenv: n isolated python env where we can test our tools/scripts etc while not installing them on our system globally.pipinstallvirtualenvwheel: a packaging mechanism for python tools/packages.pipinstallwheelsetuptools: a library that we will use to package our tool.pipinstall--upgradesetuptoolstwine: used for distributing the packages topypi/test.pypi.pipinstalltwineDirectory Structure & Initial SetupMyTool
    - app
        - __init__.py
        - __main__.py
        - application.py
    - my_tool.py
    - setup.py
    - requirements.txt
    - README.md
    - LICENSE
    - MANIFEST.inLicenseChoose a LICENSE for distributing the package to pick fromhttps://choosealicense.com/.Required packagespipinstall-rrequirements.txtsetup.pypy_modulesThis is the place where we tellsetuptoolswhat modules it must be including while packaging the tool.In our case, we are asking it to includemy_tool.pyand the whole app folder.That is where the main functionalities of our tool will lie.packagesThis tells the places setuptools should look for in the current directory to find packages required for the tool.find_packages()without any arguments means look through the whole directory to find any packages required.entry_pointsThis is where we tell how our tool can be invoked and what function must be called when it is invoked.[console_scripts] tells thesetuptoolsthat this tool will be used as a CLI tool (likepipornpm).cooltool=my_tool:clithis tellssetuptoolsthat whenever somebody typescooltoolin the terminal, call the cli function insidemy_tool.py.If we have another function called start, and we want that to be invoked, we would writemy_tool:start.Testing the Tool# Create a virtual envvirtualenv<virtual-env-name># Activate the created virtual envsourcevenv/bin/activate# Install the CLI toolpythonsetup.pydevelop# Verify the installationwhichcooltoolTests# Tests%cooltoolhello
HelloWorld

%cooltoolhello-nPython
HelloPythonPackaging and Distributingpythonsetup.pysdistbdist_wheelUsetwineto upload the binaries totest.pypi.org.twineupload--repositorytestpypi--skip-existingdist/*Now install it usingpip.pipinstall--index-urlhttps://test.pypi.org/simple/cooltoolReferenceClick documentation
Package: convertpngs
INTRODUCTIONconvertpngs is a module to help you to do some image processing work. It is based on the opencv-python module and Pillow module, convert the multiple png files to form of gif or mp4. It is a module that CYC wrote for his own use, but I think it is useful for others, so I published it.IMPORTANTIf you encounter the ModuleNotFoundError when using this module, you need to manually install the module in the lastest version:pip install opencv-pythonpip install PillowAlso, some modules do not support the previous version of python, make sure you are using the version 3.7 or above.There still exist some bugs in this module, if you find any, please contact me by email:vichouro@gmail.com. Thank you. Some function reported bugs have added the caution hint when called.INSTALLATIONInstall guide: (run on your powershell or cmd)pip install convertpngsUpdate guide: (run on your powershell or cmd)pip install --upgrade convertpngsor directly run the python script below:fromconvertpngsimportupgradeUSAGEConvert pngs to gifIf you want to convert the png files to gif, you can use the functionto_gifin the moduleconvert_pngs. The function has three parameters, the first one is the input folder path, the second one is the output file name, and the third one is the duration of each frame. The default value of the third parameter is 100, which means 100 milliseconds. The function will return the path of the output file.# 導入套件fromconvertpngsimportconvert_pngsascp# 指定輸入資料夾和輸出GIF文件的名稱input_folder='hotspot_TPP'# 替換PNG檔案所在的資料夾路徑output_file='output.gif'# 替換為輸出的GIF檔案名稱cp.to_gif(input_folder,output_file,duration=100,loop=0)# 每一張的顯示時間，100就是100毫秒Convert pngs to mp4If you want to convert the png files to mp4, you can use the functionto_mp4in the moduleconvert_pngs. The function has three parameters, the first one is the input folder path, the second one is the output file name, and the third one is the fps of the video. The default value of the third parameter is 10, which means 10 frames per second. The function will return the path of the output file.# 導入套件fromconvertpngsimportconvert_pngsascp# 指定輸入資料夾和輸出MP4文件的名稱input_folder='hotspot'# 替換為PNG檔案所在的資料夾路徑output_file='output.mp4'# 替換為輸出的MP4文件名稱cp.to_mp4(input_folder,output_file,fps=30)# 這裡的fps是幀率，可以根據需要調整Let's all, enjoy the beauty of simplification of this module.CHANGE LOG0.0.1 (29/09/2023)First Release0.0.3 (29/09/2023)Minor bug fixes0.04 (30/09/2023)Fixing the bugs for displacement of the first frame of the gif
Package: convert-shp-to-csv
convert-shp-to-csvThis tool will take a shape file (.shp), and convert it to a gridded csv file with lat/long of the
center of the grid as columns.Any shapes that overlap this point when the shape is overlaid on to the grid will be reflected in
additional columnsUsage:usage: convert-shp-to-csv [-h] [--output-file OUTPUT_FILE] [--cell-size CELL_SIZE] shape_file

Converts a shape file (.shp) to a gridded csv file.
    

positional arguments:
  shape_file            Shape file (.shp) to convert

optional arguments:
  -h, --help            show this help message and exit
  --output-file OUTPUT_FILE, -o OUTPUT_FILE
                        Name of csv file to output
  --cell-size CELL_SIZE
                        Cell size, in lat/long segments. Default: 0.1Example output:latitude,longitude,EthGLG,EthHGComb
7.4488230199999546,34.35153731999999,Unconsolidated sedimentary - Miocene to Recent (minor consolidated Alwero Sandstone),U-LM
7.4488230199999546,34.35153731999999,Igneous Volcanic,I-M/H
7.4488230199999546,34.35153731999999,Precambrian Mobile/Orogenic Belt,B-L
7.548823019999955,34.35153731999999,Unconsolidated sedimentary - Miocene to Recent (minor consolidated Alwero Sandstone),U-LM
7.548823019999955,34.35153731999999,Igneous Volcanic,I-M/H
7.548823019999955,34.35153731999999,Unconsolidated sedimentary - Miocene to Recent (minor consolidated Alwero Sandstone),U-LM
Package: convert-source
convert_sourceConvert sourceDICOM,PAR RECorNIFTIimage data to BIDS directory layout.The YAML configuration file used as input dictates the search terms used to find and rename files. Please seeconfig/config.default.ymlorconfig/config.example.ymlfor examples.Requiresdcm2niixandpydicom.usage: study_proc [-h] [-s STUDY_DIR] [-o OUT_DIR] [-c CONFIG.yml] [--no-gzip]
                  [--compress INT] [--zero-pad INT] [--append-dwi-info]
                  [--verbose] [--version] [--path-env PATH_VAR]

Convert source data of a study's imaging data to BIDS NIFTI data.

optional arguments:
  -h, --help            show this help message and exit

Required Argument(s):
  -s STUDY_DIR, -study STUDY_DIR, --study-dir STUDY_DIR
                        Parent study image directory for all subjects.
  -o OUT_DIR, -out OUT_DIR, --out-dir OUT_DIR
                        Output directory.

Optional Argument(s):
  -c CONFIG.yml, -config CONFIG.yml, --config-file CONFIG.yml
                        Input YAML configuration file. If no configuration
                        file is provided, then the default configuration file
                        is used.
  --no-gzip             DO NOT gzip the resulting BIDS NIFTI files [default:
                        False].
  --compress INT        Compression level [1 - 9] - 1 is fastest, 9 is
                        smallest [default: 6].
  --zero-pad INT        The amount of zeropadding to pad the run numbers of
                        the BIDS NIFTI files (e.g. '--zero-pad=2' corresponds
                        to '01') [default: 2].
  --append-dwi-info     RECOMMENDED: Appends DWI acquisition information
                        (unique non-zero b-values, and TE, in msec.) to BIDS
                        acquisition filename of diffusion weighted image files
                        [default: False].
  --verbose             Enables verbose output to the command line.
  --version             Prints the version of 'convert_source', then exits.

Expert Option(s):
  --path-env PATH_VAR   Environmental path variable or variables for
                        dependencies (e.g. the path to 'dcm2niix'). NOTE: This
                        option is repeatable, and can thus be specified
                        multiple times.
Package: convert-subnet
This Project Is Used To Convert Network Subnet Mask (For Example: 255.255.255.0) To Prefix Length/CIDR Suffix (For Example: 24) and Vice-Versa.Installation# pip install subnetinfo setuptools
# pip install convert_subnetHow To Use# convert_subnet -s Subnet_Mask_Value
# convert_subnet -c Prefix_Length_ValueExampleCommandOutput# convert_subnet -s 255.255.255.024# convert_subnet -c 28255.255.255.240
Package: convert-thai-to-arabic
Convert Thai to ArabicA simple command-line tool to convert Thai numbers in file names to Arabic numbers.InstallationTo installconvert-thai-to-arabic, simply run:pipinstallconvert-thai-to-arabicUsageconvert-thai-to-arabic[-dDIRECTORY]Options-dor--directory: The directory containing the files to be renamed. Defaults to the current directory.Exampleconvert-thai-to-arabic-d~/Downloads/BeforeAfter
Package: convertToDecimalTime
Convert to decimal timeA small python library to convert standard time to decimal time.What is decimal timeDecimal time is the representation of the time of day using units which are decimally related. Essentially decimal times operates with powers of 10.DTs = Decimal Time secondDTm = Decimal Time minuteDTh = Decimal Time hour
This classification is unofficialUnitDecimal TimeEquivalent in SI secondsSeconds1 DTs0.864Minutes1 DTm86.4Hours1 DTh8,640FunctionsThe following are the descriptions of the functions and their required input.getSeconds: Takes an int argument that represents the SI seconds and returns an int that represents the DT seconds.getMinutes: Takes an int argument that represents the SI seconds and returns an int that represents the DT minutes.getHours: Takes an int argument that represents the SI seconds and returns an int that represents the DT hours.getTimeNow: Gets the system time and returns an array that contains the current hours, minutes and seconds in DT.Example usageAfter you install the library using the commandpip install /path/to/file/convertToDecimalTime-1.x.x-py3-none-any.whlorpip install convertToDecimalTime, you can start using the library writing scripts like the following:from convertToDecimalTime import getMinutes

x = int(input("Minutes: ")) 
print("Minutes: ", getMinutes(x))output:
Let's say that my input is 3600, the output will be:Minutes: 41.Motiation for this projectThe motivation for this small project came from an article featured on Hacker news that contained a link to the wikipedia article for decimal time. Decimal time is not widely used and that's why there was no library to handle the conversions. It is likely that this library won't be used anywhere because of how little decimal time is used but it is great to always have the option.
Package: convert-to-opus
convert_to_opusconvert_to_opus is a Python GUI program for converting audio file directories toopusaudio format.FeaturesYou can choose whether or not you want to preserve the original filesThe ability to choose the bitrateThe majority of commonly used audio file forms are supportedScreenshotsInstallationpipinstallconvert_to_opusRequirementsffmpegPython >=3.7wxPythonUsageconvert_to_opusChoose a directory then press CONVERT.LicenseMIT
Package: convert-to-redirects
## convert-to-redirectsSmall tool for creating nginx or apache redirects from text files### Usage:redirects.py type fromurls tourls [–remove-host=host] <br />
redirects.py (-h | –help) <br />
redirects.py –version <br />### Options:type - apache or nginx<br />
–remove-host=host - Substring host mane from urls<br />
Package: convert-trusted-gpg
convert-trusted-gpgThis tool read theAPTkey store's single
file and creates multiple files, one for each key.Doing this will prevent the deprecation warning when runningapt updateW: https://example.com/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.The tool accomplishes this byReading all the keys inside the/etc/apt/trusted.gpgfileFor each key, if that key doesn't exist in its own file in/etc/apt/trusted.gpg.d/,
the tool creates a new file in thetrusted.gpg.ddirectory containing the keyThe tool bases the new file's filename on the name and email address of the key.The tool assumes thataptversion>=1.4is installed which supports ASCII armored keys
with an.ascextension instead of binary keys with a.gpgextension.Usagesudoconvert-trusted-gpgExample outputSkipping 1EDDE2CDFC025D17F6DA9EC0ADAE6AD28A8F901A as it already exists in /etc/apt/trusted.gpg.d/
Skipping 37C84554E7E0A261E4F76E1ED26E6ED000654A3E as it already exists in /etc/apt/trusted.gpg.d/
Creating /etc/apt/trusted.gpg.d/WineHQ_packages_wine-develwinehq.org.asc
Creating /etc/apt/trusted.gpg.d/NodeSource_gpgnodesource.com.asc
Package: convertunit
## Unit Conversion PackageThis Python package provides a collection of functions for unit conversions across different categories such as length, weight, time, data size, area, and volume. The package is designed to make it easy to convert values from one unit to another. To use the package, simply import the desired conversion functions fromconvertunitand utilize them in your code. For example:# Installation GuideOn your terminal (Command Prompt) write the following command.pip install convertunitHit Enter.## Usage Guidefromconvertunitimportconvx=2000a=conv.cm2m(x)print(f'The answer is{a}m')Project Link:https://github.com/Asylum0741/UnitConverterFollowing is the list of all conversions in the package:Length Conversionscm to inches (cm2in)inches to cm (in2cm)cm to meters (cm2m)meters to cm (m2cm)meters to feet (m2ft)feet to meters (ft2m)km to miles (km2mi)miles to km (mi2km)Weight Conversionskilograms to pounds (kg2lb)pounds to kilograms (lb2kg)grams to ounces (g2oz)ounces to grams (oz2g)grams to kilograms (g2kg)kilograms to grams (kg2g)Time Conversionsminutes to seconds (min2sec)seconds to minutes (sec2min)hours to minutes (hr2min)minutes to hours (min2hr)hours to seconds (hr2sec)seconds to hours (sec2hr)milliseconds to seconds (ms2sec)seconds to milliseconds (sec2ms)microseconds to seconds (us2sec)seconds to microseconds (sec2us)nanoseconds to seconds (ns2sec)seconds to nanoseconds (sec2ns)days to hours (days2hr)hours to days (hr2days)weeks to days (weeks2days)days to weeks (days2weeks)months to days (months2days)days to months (days2months)years to days (years2days)days to years (days2years)Data Size Conversionsbytes to kilobytes (B2KB)kilobytes to bytes (KB2B)bytes to megabytes (B2MB)megabytes to bytes (MB2B)bytes to gigabytes (B2GB)gigabytes to bytes (GB2B)kilobytes to megabytes (KB2MB)megabytes to kilobytes (MB2KB)kilobytes to gigabytes (KB2GB)gigabytes to kilobytes (GB2KB)megabytes to gigabytes (MB2GB)gigabytes to megabytes (GB2MB)bytes to terabytes (B2TB)terabytes to bytes (TB2B)kilobytes to terabytes (KB2TB)terabytes to kilobytes (TB2KB)megabytes to terabytes (MB2TB)terabytes to megabytes (TB2MB)gigabytes to terabytes (GB2TB)terabytes to gigabytes (TB2GB)petabytes to bytes (PB2B)bytes to petabytes (B2PB)Area Conversionssquare meters to square feet (sqm2sqft)square feet to square meters (sqft2sqm)square meters to square centimeters (sqm2sqcm)square centimeters to square meters (sqcm2sqm)
Package: convertx
Converting Word-to-HTML/JSON, in order to publish our german translations
(seeICF project) Enduring Word commentary atEnduring WordandBibleserver.How to convertXInstallation:pip install -U convertxCLI (single file)convertx document.docx output.htmlconvertx document.docx output.mdCLI (full directory)cdinto directory and runconvertx htmlcdinto directory and runconvertx markdownAdditional arguments:–output-dir=output(directory for generated HTML)–input-dir=Deutsch(sub-/directories to include)Project OutlineFile formats:(Input-format) Word-files at OneDrive.(Output-format) HTML/JSON at/examples.Enduring WordPoint of contact:Andrea KölschHTML converterconvertxdone.tbd: choose WordPress plugin (wpeverest,mammothorseraphinite)tbd: streamline the process of uploadingGoogle Docs to WordPressby:Switch to the Gutenberg Block EditorTry Wordable to Streamline the Google Docs to WordPress WorkflowInstall the Mammoth .docx Converter PluginUse the Jetpack WordPress.com for Google Docs Add-OnConvert to Markdown with the Docs to Markdown Add-OnGive Writers a WordPress AccountBibleserverPoint of contact:Timotheus Israeltbd: JSON (using UTF-8)tbd: Clarify auto-upload possibilitiestbd: How are chapters divided into single-multiple JSON-files?
Package: converty
AboutA collection of programs to convert various units of measurement. Works offline.lengths.py: Lengths conversions (kilometers, miles, etc).mass.py: Mass conversions (pounds, kilograms, etc).dosimetry.py: Ionizing radiation conversions (Rems, Sieverts, etc).temperature.py: Temperature conversions (Celsius, Fahrenheit, Kelvin).astronomy.py: Astronomical conversions (Metric, imperial, light years, AU, parsecs).planck.py: Conversions for Planck units.RequirementsPython 3.6, or higher.InstallationTo install, run the following command from a terminal:pip install converty