Saravanan666/pypi-org huggingface dataset:
Package: odscharts
ODSCharts For Microsoft Excel And OpenOfficeODSCharts creates Opendocument spreadsheets(*.ods files)with scatter charts that either
Microsoft Excel or OpenOffice can open and manipulate.See the Code at:https://github.com/sonofeft/ODSChartsSee the Docs at:http://odscharts.readthedocs.org/en/latest/See PyPI page at:https://pypi.python.org/pypi/odschartsODSCharts will create ods files readable by either Microsoft Excel or OpenOffice.The format is a very narrow subset of full spreadsheet support.There is no attempt to supply a full API interface:#. All sheets contain either a table of numbers or a chart object
    - A table of numbers:
        - starts at "A1"
        - row 1 is labels
        - row 2 is units
        - row 3 through N is float or string entries
    - Chart objects are scatter plots
        - Each series is a column from a table
        - Each x axis is a column from a tableClick images to see full sizeWhat I Think I KnowMatplotlib is very good when you want to publish a chartwithoutthe data.Spreadsheets are very good when you want to publishboththe chartandthe data.Python is a great general-purpose programming language for science and engineeringTherefore the world needs a cross-platform, open-source, python solution to generate  cross-platform, open-source spreadsheet files.What I Know About ODS*.odsfiles are cross-platform, open-source spreadsheet files.OpenOffice reads*.odsfiles created by Excel much better than Excel reads*.odsfiles created by OpenOffice.Excel*.odsfiles are more simple than OpenOffice*.odsfiles (Excel only partially supportsods)It makes sense to reverse-engineer Excel-generated*.odsfiles as cross-platform, open-source spreadsheet files.ODSCharts generates*.odsfiles by reverse-engineering*.odsfiles created by Excel.That’s It… That’s how ODSCharts was born.
Package: odsgenerator
odsgenerator, a .ods generator.Generate an OpenDocument Format.odsfile from a.jsonor.yamlfile.When used as a script,odsgeneratorparses a JSON or YAML description of
tables and generates an ODF document using theodfdolibrary.When used as a library,odsgeneratorparses a Python description of tables
and returns the ODF content as bytes (ready to be saved as a valid ODF document).The content description can be minimalist: a list of lists of lists,or description can be complex, allowing styles at row or cell level.See alsohttps://github.com/jdum/odsparsatorwhich is doing the reverse
operation,.osdto.json.odsgeneratoris aPython3package, using theodfdolibrary. Current version requires Python >= 3.9, see prior versions for older environments.Project:https://github.com/jdum/odsgeneratorAuthor:jerome.dumonteil@gmail.comLicense:
MITInstallationInstallation from Pypi (recommended):pipinstallodsgeneratorInstallation from sources (requiring setuptools):pipinstall.CLI usageodsgenerator [-h] [--version] input_file output_fileargumentsinput_file: input file containing data in JSON or YAML formatoutput_file: output file,.odsfile generated from the inputUseodsgenerator --helpfor more details about input file parameters
and look at examples in the tests folder.Usage from python codeimportodsgeneratorcontent=odsgenerator.ods_bytes([[["a","b","c"],[10,20,30]]])withopen("sample.ods","wb")asfile:file.write(content)The resulting.odsfile loaded in a spreadsheet:Another example with more parameters:importodsgeneratorcontent=odsgenerator.ods_bytes([{"name":"first tab","style":"cell_decimal2","table":[{"row":["a","b","c"],"style":"bold_center_bg_gray_grid_06pt",},[10,20,30],],}])withopen("sample2.ods","wb")asfile:file.write(content)The.odsfile loaded in a spreadsheet, with gray background on first line:PrincipleA document is a list or dict containing tabs,a tab is a list or dict containing rows,a row is a list or dict containing cells.DocumentationSee in the `./doc folder:html/odsgenerator.htmltutorial.jsonortutorial.ymlandtutorial.odsLicenseThis project is licensed under the MIT License (see theLICENSEfile for details).
Package: odsl
ODSL Python SDKThe python SDK for theOpenDataDSLdata management platformInstallationYou can install the ODSL Python SDK fromPyPI:python -m pip install odslAboutThis python SDK for OpenDataDSL has the following features:Find any data in OpenDataDSL using thelistcommandRetrieve any data using thegetcommandUpdate any data (if you have permission) using theupdatecommandCheck out ourdemo repositoryfor examples of real-world usage.UsageLogging in and getting startedfromodslimportsdkodsl=sdk.ODSL()odsl.login()Finding master dataobjects=odsl.list('object',source='public',filter='source=ECB')print(objects[0])Getting master dataobj=odsl.get('object','public','#ECB')print(obj['description'])Getting a timeseriests=odsl.get('data','public','#ABN_FX.EURUSD:SPOT')print(ts)Updating some private master datavar={'_id':'AAA.PYTHON','name':'Python Example'}odsl.update('object','private',var)Reading and updating some private master datapo=odsl.get('object','private','AAA.PYTHON')po['description']='Updated from Python'odsl.update('object','private',po)
Package: odslib
An easy to use module that creates ODS documents. Fork of original odslib-python (http://code.google.com/p/odslib-python/) which looking unmaintained. Applied unicode patch (issue #1 at odslib-python).Patches are welcome.Original author: Joseph ColtonDocumentation:http://pythonhosted.org/odslib/PyPi project page:https://pypi.python.org/pypi/odslibInstallation: pip install odslib
Package: odslib3
An easy to use module that creates ODS documents. Fork of odslib (https://github.com/TauPan/odslib) as looking unmaintained. Ported to Python3.x whilst retaining Python2.7 legacy compatibility.Original author: Joseph ColtonDocumentation:http://odslib3.readthedocs.io/en/master/PyPi project page:https://pypi.org/project/odslib3InstallationSimply clone the repository and run the usual setuptools process:$> git clone https://github.com/Exelscior/odslib3.git && cd odslib3
$> python setup.py {build,install}
Package: odsparsator
odsparsator, a .ods parser.Generate a JSON file from an OpenDocument Format.odsfile.When used as a script,odsparsatorparses a.odsfile and generates a JSON
file using theodfdolibrary.When used as a library,odsparsatorparses a.odsfile and returns a Python
structure.The resulting data follows the format of the reverseodsgenerator.pyscript,
seehttps://github.com/jdum/odsgeneratorodsparsatoris aPython3package, using theodfdolibrary. Current version requires Python >= 3.9, see prior versions for older environments.Project:https://github.com/jdum/odsparsatorAuthor:jerome.dumonteil@gmail.comLicense:
MITInstallationInstallation from Pypi (recommended):pipinstallodsparsatorInstallation from sources (requiring setuptools):pipinstall.CLI usageodsparsator [-h] [--version] [options] input_file output_fileargumentsinput_file: input file, a .ods file.output_file: output file, JSON file generated from input.Useodsparsator --helpfor more details about options.sample$odsparsator--minimalsample.odssample_minimal.jsonThe result:{"body":[{"name":"first tab","table":[["a","b","c"],[10,20,30]]}]}Without the --minimal option:$odsparsatorsample.odssample_with_styles.jsonThe result:{"body":[{"name":"first tab","table":[{"row":[{"value":"a","style":"bold_center_bg_gray_grid_06pt"},{"value":"b","style":"bold_center_bg_gray_grid_06pt"...Usage from python codeimportodsparsatorcontent=odsparsator.ods_to_python("sample1.ods")DocumentationSee in the./docfolder:html/odsparsator.htmlLicenseThis project is licensed under the MIT License (see theLICENSEfile for details).
Package: od-standards-calibration-plugin
Pioreactor OD standards calibration pluginThe standard dilution-based OD calibration system is not always ideal for setting up a cluster of Pioreactors. This plugin allows you to calibrate a Pioreactor using a series of samples with known OD, rather than serially diluting a starting sample. Note, however, that the quality of the calibration will depend on the number of samples and the range of ODs used. This is a drop-in replacement for the standard OD calibration, and does not change the behavior of OD measurements after calibration.Run your calibrationType into your command line:pio run od_calibration_from_standardsTo perform this calibration, prepare a set of standards in individual vials with known OD (at least 10 mL volume) and with stir bars. Run the above command and follow the prompts. A calibration based on fitting will be produced.
Package: odswriter
odswriter=========A pure-Python module for writing OpenDocument spreadsheets (similar to csv.writer).[![Build Status](https://travis-ci.org/mmulqueen/odswriter.png?branch=master)](https://travis-ci.org/mmulqueen/odswriter)Features-------------- Pure python- Automatically converts Python types into OpenDocument equivalents- Includes support for datetime, date and time types- Includes support for Decimal type- Compatible with Python 2.7 and 3.3 (and probably others)- Support for writing formulae (but not evaluating their results)License-----------The MIT License (MIT), refer to LICENSE.txtExample---------```pythonimport datetimeimport decimalimport odswriter as ods# Single sheet modewith ods.writer(open("test.ods","wb")) as odsfile:odsfile.writerow(["String", "ABCDEF123456", "123456"])# Lose the 2L below if you want to run this example code on Python 3, Python 3 has no long type.odsfile.writerow(["Float", 1, 123, 123.123, decimal.Decimal("10.321")])odsfile.writerow(["Date/DateTime", datetime.datetime.now(), datetime.date(1989, 11, 9)])odsfile.writerow(["Time",datetime.time(13, 37),datetime.time(16, 17, 18)])odsfile.writerow(["Bool", True, False, True])odsfile.writerow(["Formula", 1, 2, 3, ods.Formula("IF(A1=2,B1,C1)")])# Multiple sheet modewith ods.writer(open("test-multi.ods","wb")) as odsfile:bears = odsfile.new_sheet("Bears")bears.writerow(["American Black Bear", "Asiatic Black Bear", "Brown Bear", "Giant Panda", "Qinling Panda","Sloth Bear", "Sun Bear", "Polar Bear", "Spectacled Bear"])sloths = odsfile.new_sheet("Sloths")sloths.writerow(["Pygmy Three-Toed Sloth", "Maned Sloth", "Pale-Throated Sloth", "Brown-Throated Sloth","Linneaeus's Two-Twoed Sloth", "Hoffman's Two-Toed Sloth"])Compatibility-------------Odswriter is tested (see Travis CI) for compatibility with LibreOffice and Gnumeric. Compatibility with OpenOfficeshould be good.jOpenDocument is not compatible out-of-the-box, but by specifying the number of columns (odswriter will pad with emptycells up to that number) it can be made compatible. Code example:```pythonimport odswriter as odswith ods.writer(open("test-multi.ods","wb")) as odsfile:my_sheet = odsfile.new_sheet("My Sheet", cols=3)my_sheet.writerows([["One"],["Two", "Four", "Sixteen"],["Three", "Nine", "Twenty seven"]])```
Package: odt2sphinx
What is it ?Odt2sphinx converts OpenDocument Text file(s) to one or several .rst files.InstallYou need to install PIL first, then:pip install odt2sphinxoreasy_install odt2sphinxUsageUsage:
  odt2sphinx [options] filename.odt [targetdir]
  odt2sphinx [options] config.cfg

config.cfg content:
  [path/to/the/file.odt]
  targetdir = path/to/the/targetdir

Options:
  -h, --help            show this help message and exit
  --debug
  --download-source-linkOuput filesThe files are generated in the target dir, which by default has the
same name as the .odt file minus the extension.At least one file, “index.rst”, will be written. Depending on the
document content, additional rst files may be generated (see next chapter).Images are extracted and put together in an “images” directory inside
the targetdir.Styles mappingThe following rules will be applied to particulary styles when converting
an .odt file. The style names are case-insensitive.“Title” (in any language) : becomes the main document title
(underlined with ‘=’).“Title 1” : Creates a new page named after the title, and becomes this
page main title (underlined with ‘=’). A reference to this file
is inserted in a.. toctreedirective of the index.rst file.“Title 2” to “Title 6” : becomes sub-chapter titles.
(underlined respectively ‘-’, ‘~’, ‘^’, ‘”’, “’”)“Warning” (or “Avertissement”) : The chapter becomes the content
of a.. warningdirective“Tip” (or “Trucs & Astuces”) : The chapter becomes the content
of a.. tipdirective“Note” or “Information”: The chapter becomes the content
of a.. notedirectiveChanges0.3.0 (2016-09-28)Switch to PillowProvides universal wheels0.2.3 (2012-09-06)Fix filename generation by replacing any non-alphanumeric character
(issue #3).Fix handling of non-styled lists.0.2.2 (2012-07-04)Fix the sdist archive on pypi.0.2.1 (2012-06-24)Add support for numbered lists, hyperlinks, underlined text (translated to
italic).Fix bold text support.0.2 (2012-05-28)Now supports python 3Explicitely added PIL as a dependency (issue #2).0.1.2 (2012-05-22)Add “Information” to the styles mapping.Handle note, tip and warning styles in lists items. This allows to use
lists inside a note, a tip or a warning.Now handle external images (issue #1).0.1.1 (2011-12-20)Improved the RstFile for use in third-party code: it is now possible
to insert code and not just append it.Add a README file0.1.0Initial release
Package: odt-at42qt1070-python
This is the python driver library for the AT42QT1070 Acorn by Oak Development Technologies.DependenciesThe Adafruit Bus Device Library is required.ExamplesExample uses of the driver code can be found under the Example folder when available.ContributingOpen an issue if you would like to add support for features or functionality not currently implemented.Questions?Emailhello@oakdev.techwith any questions you have or simply open an issue.Licensed under MIT
Package: odtbrain
ODTbrainprovides image reconstruction algorithms forOpticalDiffractionTomography with aBorn andRytovApproximation-basedInversion to compute the refractive index (n) in 2D and in 3D.DocumentationThe documentation, including the reference and examples, is available atodtbrain.readthedocs.io.Installationpip install odtbrainTestingAfter cloning into odtbrain, create a virtual environment:virtualenv --system-site-packages env
source env/bin/activateInstall ODTbrain in editable mode:pip install -e .Running an example:python examples/backprop_from_fdtd_2d.pyRunning tests:pip install pytest
pytest tests
Package: odtlearn
A package for tree-based statistical estimation and inference using optimal decision trees. ODTlearn provides implementations of StrongTrees [1], FairTrees [2], RobustTrees [3] for classification, and Prescriptive Trees [4] for prescription.DocumentationThepackage documentationcontains usage examples and method reference.InstallationThe current development version can be installed from source with the following command:pipinstallgit+https://github.com/D3M-Research-Group/odtlearn.git#egg=odtlearnA release version of the package will be available on PyPI shortly.Obtain Gurobi LicenseTo use Gurobi with ODTlearn, you must have a valid Gurobi License.Free licenses are available for academic useand additional methods for obtaining a Gurobi license can be foundhere.CBC BinariesPython-MIPprovides CBC binaries for 64-bit versions of Windows, Linux, and MacOS that run on Intel hardware, however we have observed that these binaries do not seem to work properly with lazy constraint generation, which is used in some of our MIO formulations. Thus, to ensure expected behavior when using ODTlearn, we strongly recommend building CBC from source. Below are the steps needed to compile CBC from source usingcoinbrew.mkdirCBCcdCBC
wget-nHhttps://raw.githubusercontent.com/coin-or/coinbrew/master/coinbrew
chmodu+xcoinbrewbashcoinbrewfetchCbc@master--no-prompt
bashcoinbrewbuildCbc@stable/2.10exportDYLD_LIBRARY_PATH=/PATH/TO/CBC/dist/libexportPMIP_CBC_LIBRARY=/PATH/TO/CBC/dist/lib/PLATFORM_SPECIFIC_SHARED_LIBThe last two steps are critical for ensuring that ODTlearn (through Python-MIP) uses the correct CBC binary. For Windows and MacOS the shared library name islibCbc.dllandlibCbc.dylib, respectively. For Linux, the shared library name islibCbcSolver.so. To ensure that the environment variables persist, we suggest adding the last two lines to your.zshrcor.bashrcfile.DevelopingThis project usesblackto format code andflake8for linting. We also supportpre-committo ensure
these have been run. To configure your local environment please install these development dependencies and set up
the commit hooks.pipinstallblackflake8pre-commit
pre-commitinstallReferences[1] Aghaei, S., Gómez, A., & Vayanos, P. (2021). Strong optimal classification trees. arXiv preprint arXiv:2103.15965.https://arxiv.org/abs/2103.15965.[2] Jo, N., Aghaei, S., Benson, J., Gómez, A., & Vayanos, P. (2022). Learning optimal fair classification trees. arXiv preprint arXiv:2201.09932.https://arxiv.org/pdf/2201.09932.pdf[3] Justin, N., Aghaei, S., Gomez, A., & Vayanos, P. (2021). Optimal Robust Classification Trees. In The AAAI-22 Workshop on Adversarial Machine Learning and Beyond.https://openreview.net/pdf?id=HbasA9ysA3[4] Jo, N., Aghaei, S., Gómez, A., & Vayanos, P. (2021). Learning optimal prescriptive trees from observational data. arXiv preprint arXiv:2108.13628.https://arxiv.org/pdf/2108.13628.pdf
Package: odt_templater
This is a minimal module for creating ODT files based on ODT templates and
dictionaries of values.Note that the template rendering is based on regular expression matches on
the ODT internal XML data; as such it should not be considered robust and
will most certainly fail on some inputs. However, it’s “good enough” to be
very useful considering the tiny code footprint - there are more lines of
documentation than code here!Just be sure to test your templates…Example::from odt_template import render_odt_template

# Assuming a template that has:
#   - A @TO@ marker somewhere on the page
#   - A table with a row containing @CHILD@ and @NAUGHTY@ markers
#   - An embedded image named XMAS.png
#
render_odt_template('xmas-template.odt', 'simpsons-family.odt', {
    'to': 'Santa Claus',
    'child': [
        {'child': 'Bart', 'naughty': 'yes'},
        {'child': 'Lisa', 'naughty': 'no'},
        {'child': 'Maggie', 'naughty': 'no'}
    ],
    'Pictures/XMAS.png': open('pretty-tree.png', 'r').read()
})Why doesn’t my template work?LibreOffice has probably injected random formatting markup in the middle of
your placeholders, preventing the tool from recognizing them.  Using “Format,
Clear Direct Formatting” and then reformatting again (taking care to always
select entire placeholders) usually helps.Contributions and bug reportsPlease file pull requests or open issues on this project’s Github repository:https://github.com/BjarniRunar/odt-templater/Copyright and License (MIT)This code is (C) Copyright 2017, Bjarni Rúnar Einarsson.Permission 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: odt_to_pdf
odt_to_pdfA Celery shared task to transform an odt file (or its UTF8-decoded representation) to PDFInstallationpip install odt_to_pdfUsageCreating taskSeeexamples/consumer/main.pyWorkerThe package works with a Celery worker which can be run directlycelery -A worker worker -Q odt_to_pdf -l INFOHowever this requireslibreofficeto be installed.It is therefore advisable to run the worker in Docker using this image: techspaceasia/odt_to_pdf:1.0.0The worker needs to be run in an environment which has access tothe Celery brokerthe Celery result backendThelibreofficeexecutableDevelopmentCreate a network which will be accessible to both the worker and the task setter e.g.:docker network create odt_to_pdf_networkRunredisin that network .g.docker run --rm --name redis --network odt_to_pdf_network redis:7.0.4Build the docker image:docker build -f docker/Dockerfile -t odt_to_pdf_worker:latest .Run the worker in the same network, optionally mounting the code into itdocker run -v $PWD:/code --network odt_to_pdf_network odt_to_pdf_worker:latest watchmedo auto-restart --directory=./odttopdf --pattern="*.py" --recursive -- celery -A worker worker -Q odttopdf -l INFOCreate tasks from any other container which has access to the same network (you may reuse the worker image e.g.docker run --rm --network odt_to_pdf_network -v $PWD:/code odt_to_pdf_worker:latest python examples/consumer/main.py)pip install watchdog
export CELERY_CONFIG_MODULE=celeryconfig_local
watchmedo auto-restart --directory=./odttopdf --pattern="*.py" --recursive -- celery -A worker worker -Q odttopdf -l INFO
Package: odufrn-downloader
Open Data UFRN DownloaderPacote para baixar os dados do portal dedados abertos da UFRN.Instalaçãopipinstallodufrn-downloaderGuia de usoVeja a documentaçãoclicando aqui.Como começar a usar o pacote:fromodufrn_downloaderimportODUFRNDownloaderufrn_data=ODUFRNDownloader()MétodosAbaixo estão listados os métodos disponíveis no pacote:MétodoDescriçãodownload_allBaixa todos os conjuntos de dados disponíveis.download_packageBaixa o pacote de dados desejado.download_packagesBaixa uma lista de pacotes de dados desejado.download_from_fileBaixa os pacotes de dados que estão escritos em um arquivo de texto.download_groupBaixa um grupo de conjuntos de dados desejado.download_groupsBaixa uma lista de grupos de pacotes de dados desejado.load_packagesAtualiza a lista de pacotes disponíveis.load_groupsAtualiza a lista de grupos disponíveis.load_tagsAtualiza lista de etiquetas disponíveis.print_files_from_packageImprime no terminal a lista de arquivos referentes ao pacote de entrada.print_files_from_groupImprime no terminal a lista de arquivos referentes ao grupo de entrada.print_packagesImprime os pacotes de dados.print_groupsImprime os grupos de conjuntos de dados.print_tagsImprime as etiquetas.search_by_tagRetorna uma lista de pacotes de dados relacionados a uma etiqueta.search_related_packagesRetorna uma lista de pacotes de dados relacionados a uma entrada.search_related_groupsRetorna uma lista de grupos de conjuntos de dados relacionados a uma entrada.Exemplofromodufrn_downloaderimportODUFRNDownloaderufrn_data=ODUFRNDownloader()# Lista os conjuntos de dadosufrn_data.print_packages()# Baixa um conjunto de dadosufrn_data.download_package('discentes')# Baixa uma lista de conjuntos de dadospackages=['discentes','dados-complementares-de-discentes','dados-socio-economicos-de-discentes']ufrn_data.download_packages(packages)