Saravanan666/pypi-org huggingface dataset:
Package: conversion
conversionUtility functions to convert strings to Python types.convert_base64Converts base64 encoded strings or bytes into strings:>>> from conversion import convert_base64
>>> convert_base64('dGVzdA==')
'test'If the payload is expected to be bytes, string conversion can be suppressed:>>> convert_base64('dGVzdA==', convert_string=False)
b'test'When the function does not find the string can be converted, an exception can be raised:>>> convert_base64('dGVzdA=', raise_exceptions=True)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/berto/Projects/home/conversion/conversion/base64.py", line 28, in convert_base64
    converted = base64.b64decode(value)
  File "/Users/berto/.local/share/virtualenvs/conversion-bncB6LgQ/lib/python3.6/base64.py", line 87, in b64decode
    return binascii.a2b_base64(s)
binascii.Error: Incorrect paddingconvert_boolConverts truthy strings toTrueand falsey strings toFalse:>>> from conversion import convert_bool
>>> convert_bool('yes')
True
>>> convert_bool('no')
FalseWhen the function does not find the string can be converted, ValueError is
raised:>>> convert_bool('yup')
ValueError: invalid truth value 'yup'convert_deltaConverts time with unit suffixes intodatetime.timedeltaobjects:>>> from conversion import convert_delta
>>> convert_delta('1h')
datetime.timedelta(0, 3600)convert_jsonConverts JSON strings into objects:>>> from conversion import convert_json
>>> convert_json('{"some": "dict", "in": "json"}')
{'some': 'dict', 'in': 'json'}convert_listConverts a comma-delimited string into a list:>>> from conversion import convert_list
>>> convert_list('a,comma,delimited,list')
['a', 'comma', 'delimited', 'list']And an optional kwarg can specify the delimiter:>>> convert_list('a:colon:delimited:list', delimiter=':')
['a', 'colon', 'delimited', 'list']
Package: conversion-therapy
Conversion TheraPyUniversal Data Conversion Library and CLIFree software: MIT licenseDocumentation:https://conversion-therapy.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2018-05-01)First release on PyPI.
Package: conversiontools
Conversion ToolsAPI Python ClientConversion Toolsis an online service that offers a fast and easy way to convert documents between different formats, like XML, Excel, PDF, Word, Text, CSV and others.This Client allows to integrate the conversion of the files into Python applications.To convert the files Python Client uses the publicConversion Tools REST API.Installationpipinstall--upgradeconversiontoolsor when building from the sources:pythonsetup.pyinstallExamplesTo use REST API - get API Token from the Profile page athttps://conversiontools.io/profile.See exampletest.pyin the./examples/folder.fromconversiontoolsimportConversionClient# put token here from your Profile page at https://conversiontools.io/profiletoken=''# filesfileInput='test.xml'fileOutput='test.csv'client=ConversionClient(token)try:client.convert('convert.xml_to_csv',fileInput,fileOutput,{'delimiter':'tabulation'})exceptExceptionaserror:print(error)APICreateConversionClientinstance with a token.fromconversiontoolsimportConversionClientclient=ConversionClient('<token>')Where<token>is API token from the account's Profile pagehttps://conversiontools.io/profile.Convert input file and download the resulttry:client.convert('<conversion type>',fileInput,fileOutput,'<options>')exceptExceptionaserror:print(error)Where<conversion type>is a specific type of conversion, fromAPI Documentation.<options>is a Python dict with options for a corresponding converter, for example:options={'delimiter':'tabulation'}DocumentationList of available Conversion Types and corresponding conversion options can be found on theConversion Tools API Documentationpage.LicenseLicensed underMIT.Copyright (c) 2020Conversion Tools
Package: conversion-units
conversion-unitsThis package provide a unified collection of method toconvert values from one unit to another.Yet i start with only 4 physical size namelydistance, time, mass and temperature1. Installationpipinstallconversion_units2. Availables dimensionsMassDistanceTimeTemperature3. Importfromconversion_unitsimportmassfromconversion_unitsimporttimefromconversion_unitsimportdistancefromconversion_unitsimporttemperature4. Usagea -Temperature conversionfromconversion_unitsimporttemperatureprint(temperature.kelvin_to_celcius(0.))print(temperature.kelvin_to_rankine(62))b -distance conversionfromconversion_unitsimportdistanceprint(meter_to_kilometer(23000))5. AuthorFull Name :Brice KENGNI ZANGUIMEmail :kenzabri2@yahoo.com6. Contributors
Package: conversion-vitesse
# Project conversion##  But du projetCréer un module pythonLe puplier sur la communaité de python (Pypi.org)##  EtapesCréation de compte sur githubCréation de compte sur Pypi.orgDeveloppement du moduleConfirguration necessaireinstallation du package créer avec la commande pip##  Utilité du moduleLe module conversion permet de convertir une vitesse soit :En Kilomètre par heure (Km/h)En mètre par séconde (m/s)##  Lancement du moduleon founir en entrée la vitesseon lance le programme : conversion ( vitesse )
Package: conversor-divisor
Conversor & DivisorConversor & Divisor é uma GUI  - interface gráfica, gratuita e open-source para o FFmpeg e MP4Box a fim de realizar conversões e divisões de mídias para o PJe.Como instalar no windowsBaixar o instaladorLinkInstalação simplificada:pip install conversor-divisorPara funcionamento no Linux ou macOS, os pacotes ffmpag e gpac(MP4Box) devem ser instalados no SO.Ubuntu:apt install ffmpeg gpac -ymacOS:brew install ffmpeg gpacComo abrir o Conversor&Dividor usando o terminal:conversor-divisorDownload dos binários para Windows, caso queira instalar o conversor pelo código fonteLink.
Package: convert2php
# PHP to PYTHONA python script to convert simple php code to python,It just converts the basic syntaxIt is the one i use in the conversion mpg25/Instagram-API in PHP to danleyb2/Instagram-API in PYTHON## usage```$ python php2python.py -husage: php2python.py [-h] -s SCRIPT [-o]PHP to PYTHON syntax converter.optional arguments:-h, --help            show this help message and exit-s SCRIPT, --script SCRIPTPath to PHP script-o, --overwrite       Overwrite Python script if exists``````$ python php2python.py -s test_scripts/Caption.phpConverting: test_scripts/Caption.php. Output file will be: test_scripts/Caption.py# Remove opening and closing <?php# convert $this-> to self.# convert :: to .# delete all }# delete namespace|require_once|include_once# convert protected $var to self.var = None then move into __init__# convert public|protected function to def# add `self` to function signatures# classes not children to extend `object`# convert $ to ''# convert ; to ''# convert new to ''Converted: test_scripts/Caption.php. to: test_scripts/Caption.py. { Go on, Proof Check :) }``````$ python php2python.py -s test_scripts/Caption.phpSorry, A python Script test_scripts/Caption.py already exist, use -o to overwrite.```
Package: convert2snn
Convert2SNNTool for converting conventional neural networks to spiking neural networks.Currently under construction. Please check again later until everything is implemented.AboutThis tool can be used to convert and optimize conventional neural networks that were trained in TensorFlow to spiking neural networks (SNN).InstallationRun the following to install:pipinstallconvert2snnUsagefromconvert2snnimportconvertDevelopingTo install Convert2SNN alongside the tools you need to develop and run tests, run the following:pipinstall-e.[dev]ReferencesMueller, Auge, Klimaschka, Knoll, "Neural Oscillations for Energy-Efficient Hardware Implementation of Sparsely Activated Deep Spiking Neural Networks", AAAI Practical DL, 2022Mueller, Studenyak, Auge, Knoll, "Spiking Transformer Networks: A Rate Coded Approach for Processing Sequential Data", ICSAI, 2021Mueller, Auge, Knoll, "Normalization Hyperparameter Search for Converted Spiking Neural Networks", Bernstein Conference, 2021Mueller, Hansjakob, Auge, Knoll, "Minimizing Inference Time: Optimization Methods for Converted Deep Spiking Neural Networks", IJCNN, 2021Mueller, Hansjakob, Auge, "Faster Conversion of Analog to Spiking Neural Networks by Error Centering", Bernstein Conference, 2020
Package: convert2tif
Convert to TifDescriptionThis is a small package that will change any image file thatPillowsupports to atiffile format.InstallationCopy the link above to install.DocumentationTo import theconvertfunction:from convert2tif.convert2tif import convertconvert2tif.convert(input_path=".", output_path=None)
Args:input_path: str
    String indicating path to directory of images to be converted. Uses
    current directory if no input path is provided.

output_path: str
    String indicating path to directory where converted images will be
    saved. Creates a new 'output' directory within the current
    directory if no output path is provided.
Package: convert-and-download
convert_and_downloadConvert one or more ipynb files to PDF, merge them, and download the resulting file.Change LogAll notable changes to this project will be documented in this file.The format is based onKeep a Changelogand this project adheres toSemantic Versioning.0.3.0- 14-JUL-2019ChangedBump dependency versionsSwitch to GitHub Actions for buildingSwitch branch to main0.2.4- 2019-JAN-19Changed"Convert and download selected" button text is now sentence case rather than title caseConversion loop is simplified to be a single loopFix or ignore Markdown lint errors in CHANGELOG.mdFixedConvert and download button is shown when files are selected with "Select all" checkbox0.2.3- 2018-OCT-01ChangedOnly run LaTeX once when converting0.2.2- 2018-AUG-30ChangedBump minimum version ofthermohwto 0.4.0FixedAddconvert_raw_htmlfilter toPDFExporterto match newer versions ofthermohw0.2.1- 2018-AUG-14AddedAddconvert_divfilter fromthermohwpackage to convert Bootstrapalert-*class divs to appropriate LaTeX environments0.2.0- 2018-AUG-03AddedNew keywords to thesetup()functionConfiguration for flake8 in setup.cfgStart to add some typingAdd docstrings to theDLConvertHandlerclass andgetinstance methodChangedRenameDLconvertFileHandlertoDLConvertHandlerRaise an error if theformatpassed to thegethandler is notpdfDirectly use thePDFExporterrather than guessing the typeFixedFix route URL fordlconverthandlerFix adding readme to thelong_descriptioninsetup.py0.1.3- 2018-AUG-03FixedAdd all dependencies tosetup.pyandmeta.yamlFixANACONDA_TOKENsecure variable on Travis CI0.1.2- 2018-AUG-03AddedAdd docstring to__init__.pyInstallconda-verifyon Travis CIFixedSecure variables for Travis CI need to be encrypted with the--proflagConda recipe Jinja variable expansion0.1.1- 2018-AUG-03AddedAdd setup.cfg fileFixedFix adding channels to .travis.yml0.1.0- 2018-AUG-03AddedConvert and download multiple selected NotebooksAutomatically configure the extension to be used when installed
Package: convertanything
convertanythingconvertanythingis a simple way to convert any unstructured texts into pydantic models in Python with the use of language models. See theexamples notebookfor more details.InstallationpipinstallconvertanythingUsagefromconvertanythingimportconvertanythingfrompydanticimportBaseModelfromtypingimportListclassPerson(BaseModel):name:strage:intemail:strinterests:List[str]response=convertanything(input_string="Hi my name is John Doe, I am 30 years old, my email is johndoe@example.com . I like to go fishing.",model=Person,api_key="Your OpenAI API Key",)print(response)
Package: convertbase
Universal base converterUse either with predefined converters:integer to base32(RFC4648)integer to hexbase32(RFC4648) to integerOr use with custom settings:set baseset charsetExamples:if __name__ == "__main__":
    # example:
    num = 15851

    # using instance of converter, using custom settings
    converter = Convertbase()
    converter.set_base(32)
    converter.set_charset('ABCDEFGHIJKLMNOPQRSTUVWXYZ234567')

    print(converter.convert(num))

    # or using static methods:
    print(Convertbase.to_b32(num))

    # hex, compare to built-in
    print(Convertbase.to_hex(num))
    print(hex(num))

    #convert back:
    print(Convertbase.from_b32_to_dec('PPL'))
Package: convert-case-py
convert-case-pyis a Python package providing utils task to the Git.InstallationAs of 0.0.2,convert-case-pyis compatible with Python 3.7+.Usepipto install the latest stable version ofconvert-case-py:$pipinstall--upgradeconvert-case-pyCommandCase.camelcase_to_lowercase({‘helloWorld’: 1, ‘helloWorldHuman’: ‘Value’, ‘testHelloWorld’: {‘otherTestHelloWorld’: ‘value’}})Case.pascalcase_to_snakecase({‘HelloWorld’: 1, ‘HelloWorldHuman’: ‘Value’, ‘TestHelloWorld’: {‘OtherTestHelloWorld’: ‘value’}})Case.camelcase_to_snakecase({‘helloWorld’: 1, ‘helloWorldHuman’: ‘Value’, ‘testHelloWorld’: {‘otherTestHelloWorld’: ‘value’}})Case.snakecase_to_camelcase({‘hello_world’: 1, ‘hello_world_human’: ‘Value’, ‘test_hello_world’: {‘other_hello_world’: ‘value’}})Case.snakecase_to_lowercase({‘hello_world’: 1, ‘hello_world_human’: ‘Value’, ‘test_hello_world’: {‘other_hello_world’: ‘value’}})Case.snakecase_to_pascalcase({‘hello_world’: 1, ‘hello_world_human’: ‘Value’, ‘test_hello_world’: {‘other_hello_world’: ‘value’}})
Package: convert-color-codes
convert_color_codesThe convert_color_codes module deals with the conversion of color codes. Conversion from these codes HSV/HSB, RGB, CMYK, HSL from one to another.InstallationYou can installconvert_color_codesfrom PyPI:pip install convert_color_codesIt is supported on Python 2, 3 ...How to usefromconvert_color_codesimport*
Package: convert-csv-to-xlsx
convert-csv-to-xlsxConvert csv file to excel file.Installpipinstallconvert-csv-to-xlsxInstalled Command Line Utilsconvert-csv-to-xlsxUsageC:\Code\python-csv-to-xlsx>pythonconvert_csv_to_xlsx.py--help
Usage:convert_csv_to_xlsx.py[OPTIONS]CSV_FILE[XLSX_FILE]Convertcsvfiletoxlsxfile.Usage:convert-csv-to-xlsxtest.csvtest.xlsx

Options:-d,--delimiterTEXTCSVcolumndelimiter,defaultto",".-e,--encodingTEXTCSVfileencoding,defaulttoutf-8.--helpShowthismessageandexit.Releasesv0.1.0 2020/03/30First release.
Package: convert-ej
convert-ejA software tool for converting problem files between electronic judges formats.Pypi linkInstallationpip3 install convert-ejUsageconvert-ej reader writer fileThe toolreadsa problem infile, structured in a specific format, and thenwritesit into a different format. The user needs to provide the following command line arguments:reader: the input e-judge format.writer: the output e-judge format.file: the path to the file (or directory) containing the problem information, which must be structured according to thereaderformat.Please be mindful of the specificities of each e-judge format, since convertion might not be sucessful. For example, CodeRunner does not handle EPS images and BOCA may have issues creating the test sheet (usually a PDF file) dependng on the format the examples.ExampleTo convert a problem inPolygonformat into aCodeRunnerone, we can use:convert-ej Polygon CodeRunner polygon_problem.zipMore details can be found usinghelpfunction:convert-ej --help
Package: convertemppy
convertempPyEasily convert between temperatures: Celsius, Kelvin & Fahrenheit! This is a toy package developed for theUBC MDS DSCI 524 (Collaborative Software Development) course.Installation:pip install -i https://test.pypi.org/simple/ convertempPyFeaturesContains functions for all permutations of conversions between Celsius, Kelvin and Fahrenheit. This package is an example for the UBC MDS DSCI 524 (Collaborative Software Development) course. Yup, that one!DependenciesPython 3 or greaterUsageExample usage:>>> from convertempPy import convertempPy as tmp
>>> tmp.fahr_to_celsius(32)0DocumentationThe official documentation is hosted on Read the Docs:https://convertempPy.readthedocs.io/en/latest/CreditsThis package was created with Cookiecutter and the UBC-MDS/cookiecutter-ubc-mds project template, modified from thepyOpenSci/cookiecutter-pyopensciproject template and theaudreyr/cookiecutter-pypackage.
Package: converter-chinkara
M1-2022-gitIntroductionThis repository is a fork from the previous repository.
The bugs in the converter have been fixed and now we want to publish our work as a publicly available python package.Getting startedYou should be working fromyour own repositorythat is a fork of M1-2022-git-workflow.
In order to run this project, you will have to follow these steps.Clone this projectmove into the project foldercdM1-2022-git-workflowSet up a virtual environmentCreate the virtual environmentpython-mvenvmyvenvActivate venv.venv/bin/activateInstall pytestpipinstall-UpytestExecute main scriptpythonmain.pyInstructionsMerge feature branch into devNow that the converter has no more bugs, we want to merge our branch feature into the dev branch.
We will do a pull request (on your own repo). On GitHub, go to the "Pull requests tab" and click "New pull request".
Selectbaseandcompare. Remember : we want to mergedecimal-binary-converterintodev.
Then,Create the pull request. Add some description of the work you have done and publish the Pull Request.Note: We could have just mergedecimal-binary-converterintodevfrom the command line. However, when working on a real project, you probably won't have the rights to do so. Remember : dev is a public branch. So all the work going down there should be carefully reviewed and tested.Publish your workWe now have an awesome binary/decimal two ways converter ! It's time to publish it so the rest of the world can enjoy it !
We will publish it on PyPI (Python Package Index) which is a public repository of softwares for Python.First, you have to create an account onPypi.orgThen, in your repository, you will find a.github directoryInside this directory, you will find .yml files that defines workflows (using GitHub actions)Open the yml files and take time to understand them. Do not hesitate to ask the teacher about themHands on !We want to create a workflow that will, on publish, test our code and if tests succeed, then publish our package on PyPIIn GitHub, click on theActionstab, then click onnew workflowChoose among the suggestions the template that best suits your use-case and clickConfigureYou may find some useful informations in thePython documentationWhen creating a release on GitHub, do not forget to create a tag corresponding to that releasePull requestOnce the workflow is setup and tested (you have published your package using it) you can open a pull request to theoriginal repository
Package: converter-gokuln
converterit can be used to convert length, mass, temperaturelength converter module-lenconv.lenconv()
for converting length we should give unit1-that is orginal unit and unit -2 the unit to be converted
with this module we can convert centimeter to millimeter ,millimeter to centimeter,meter to kilometer etc
while inputting unit1 and unit2 we should enter units as:
use cm for centimeter
m for metre
km for kilometer
mm for millimetermass converting module-massconv.massconv()
for converting mass  we should give unit1-that is orginal unit and unit -2 the unit to be converted
with this module we can convert kilogram to gram ,milligram to gram and vice-versa
while inputting unit1 and unit2 we should enter units as:
use 'g' for grams
kg for kilogram
mg for milligramtemperature converting module-tempconv.tempconv()
for converting temperature we should give unit1-that is orginal unit and unit -2 the unit to be converted
with this module we can convert faherenheit to celcius,kelvin to celcius,faherenheit to kelvin and vice-versa
while inputting unit1 and unit2 we should enter units as:
just enter as 'faherenheit'
just enter as   'celsius'
just enter as 'kelvin'LicenseMIT
Package: converter-package
ConverterConverter is a subcomponent of the ACCORDION platform. It is being used by the Orchestrator and Lifecycle Manager components in order to translate the application model to K3s configuration files, action models, workflow models and matchmaking modelsInstallationpip3installconverter-package==2.51. Parse Intermediate Modelnodelist,imagelist,application_version=Parser.ReadFile(jsonResponse)2. Create the namespace that describes the appInstanceInfoapplication_instance=ID.generate_k3s_namespace(name,application_version,randomApplicationIntanceID())3. How to generate matchmaking modelmatchmaking_model=MatchingModel.generate(nodelist,application_instance)4. Generate namespace and secrets files for Kubernetesnamespace_yaml=Converter.namespace(application_instance)secret_yaml=Converter.secret_generation(json_base64_string,application_instance)5. Generate deployments, persistenv volumes and services files for Kubernetesdeployment_files,persistent_files,service_files=Converter.tosca_to_k8s(nodelist,imagelist,application_instance,minicloud,externalIP,gpu_list)!!! Warning: gpu_model is an optional parameter. Since one or more GPU names may be given to Converter, the parameter has to be a list that would contain application components along with the required GPUs6. Generate the action modelactions_set=ActionModel.generate(nodelist,application_instance)7. Generate the workflows modelworkflows_set=WorkflowModel.generate(nodelist,application_instance)8. Scale outjson_base64_string,url,name=online_selector('plexus')intermediate_model=callAppBucket(json_base64_string,url,name)deployment=Converter.scale_out_to_k8s(componentInfo,intermediate_model)More on UsageDeployInterface.py is an example of usage for the case of deployment. There is also the ScaleOutInterface.py that presents how to use Converter to create scale out files for ACCORDION, it is available on the ACCORDION's GitlabLicenseMIT
Package: converter-package-Bajiio
M1-2022-gitIntroductionThis repository is a fork from the previous repository.
The bugs in the converter have been fixed and now we want to publish our work as a publicly available python package.Getting startedYou should be working fromyour own repositorythat is a fork of M1-2022-git-workflow.
In order to run this project, you will have to follow these steps.Clone this projectmove into the project foldercdM1-2022-git-workflowSet up a virtual environmentCreate the virtual environmentpython-mvenvmyvenvActivate venv.venv/bin/activateInstall pytestpipinstall-UpytestExecute main scriptpythonmain.pyInstructionsMerge feature branch into devNow that the converter has no more bugs, we want to merge our branch feature into the dev branch.
We will do a pull request (on your own repo). On GitHub, go to the "Pull requests tab" and click "New pull request".
Selectbaseandcompare. Remember : we want to mergedecimal-binary-converterintodev.
Then,Create the pull request. Add some description of the work you have done and publish the Pull Request.Note: We could have just mergedecimal-binary-converterintodevfrom the command line. However, when working on a real project, you probably won't have the rights to do so. Remember : dev is a public branch. So all the work going down there should be carefully reviewed and tested.Publish your workWe now have an awesome binary/decimal two ways converter ! It's time to publish it so the rest of the world can enjoy it !
We will publish it on PyPI (Python Package Index) which is a public repository of softwares for Python.First, you have to create an account onPypi.orgThen, in your repository, you will find a.github directoryInside this directory, you will find .yml files that defines workflows (using GitHub actions)Open the yml files and take time to understand them. Do not hesitate to ask the teacher about themHands on !We want to create a workflow that will, on publish, test our code and if tests succeed, then publish our package on PyPIIn GitHub, click on theActionstab, then click onnew workflowChoose among the suggestions the template that best suits your use-case and clickConfigureYou may find some useful informations in thePython documentationWhen creating a release on GitHub, do not forget to create a tag corresponding to that releasePull requestOnce the workflow is setup and tested (you have published your package using it) you can open a pull request to theoriginal repository