Skip to main content

simple wrapper objects for odfpy package allowing easy ods spreadsheet data navigation and editing

Project description

simpleods

Simple wrapper objects for odfpy package allowing easy ods spreadsheet data navigation and editing with some handy methods.

Features

  • adding, moving, copying and removing rows and cells,
  • getting rows and cells by index,
  • printing cells spreadsheet coordinates (human readable),
  • sorting rows,
  • removing empty rows,
  • expanding repeated rows and cells,
  • preserve cells formatting while editing data

Installation

Installation of package for use can be done by:

  • to install using PyPI: pip3 install --user simpleods
  • to install package from GitHub downloaded ZIP file execute: pip3 install --user -I file:simpleods-master.zip
  • to install package directly from GitHub execute: pip3 install --user -I git+https://github.com/anetczuk/simpleods.git
  • installation from local repository root directory: pip3 install --user .

To uninstall run: pip3 uninstall simpleods

To install project under virtual environment use tools/installvenv.sh.

Development installation is covered in Development section.

Development

Project contains several tools and features that facilitate development and maintenance of the project.

In case of pull requests please run process-all.sh --release before the request to check installation, run tests and perform source code static analysis.

Installation

Installation for development with configuration of virtual environment:

  • tools/installvenv.sh --dev to install dependencies, the package in editable mode and install development tooling.

Installation for development without venv:

  • src/install-app.sh --dev to install dependencies, the package in editable mode and install development tooling.

Virtual environment can be also configured manually by:

  • python3 -m venv .venv
  • source .venv/bin/activate
  • python -m pip install --upgrade pip
  • src/install-app.sh --dev to install dependencies, the package in editable mode and install development tooling or python -m pip install -e '.[dev]' to install project by hand.

There is also possibility to work on the project without installation. In this case project will run from local repository directory. This configuration requires installation of dependencies: ./src/install-deps.sh --dev.

Running tests

To run tests execute src/testtestsimpleods/runtests.py. Code coverage can be achieved using coverage.sh and profiling can be calculated with script profiler.sh.

Tools scripts

In tools directory there can be found following helper scripts:

  • codecheck.sh -- static code check using several tools with defined set of rules
  • doccheck.sh -- run pydocstyle with defined configuration
  • mdcheck.sh -- check links in Markdown files
  • typecheck.sh -- run mypy with defined configuration
  • checkall.sh -- execute check scripts all at once
  • profiler.sh -- profile Python scripts
  • coverage.sh -- measure code coverate
  • `notrailingwhitespaces.sh* -- as name states removes trailing whitespaces from .py files
  • rmpyc.sh -- remove all *.pyc files

Those scripts can be run also from within virtual environment.

References

License

BSD 3-Clause License

Copyright (c) 2026, Arkadiusz Netczuk <dev.arnet@gmail.com>

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
   list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
   this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
   contributors may be used to endorse or promote products derived from
   this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simpleods-1.0.2.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simpleods-1.0.2-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file simpleods-1.0.2.tar.gz.

File metadata

  • Download URL: simpleods-1.0.2.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for simpleods-1.0.2.tar.gz
Algorithm Hash digest
SHA256 4fe6a46eaacd8c60ef02599baac65b3653f4520ac4e53e5a6446a2fd811cac36
MD5 199fc57982f116e6140dd1ab837b2d9e
BLAKE2b-256 1991cd129d42a80199db4c52b20835cc4d6b6b8a9761e2de2d48698c79d59c2a

See more details on using hashes here.

File details

Details for the file simpleods-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: simpleods-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for simpleods-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 df05f9bd9cc5ed7cb6dbae9b82eb98c75fe0d613419aaaff2b1eb57be114418c
MD5 c52c8456b06bcaf21fe6cd5c81ccada1
BLAKE2b-256 8326372f956e13c8b291637b0a71dc88a92ea92dfc11df630e2423de6a3d69d5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page