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.3.tar.gz (12.4 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.3-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simpleods-1.0.3.tar.gz
  • Upload date:
  • Size: 12.4 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.3.tar.gz
Algorithm Hash digest
SHA256 c60bdac55d702ec32570e4f4132d6254042b7410cd7e915248db582985cd008a
MD5 1e8190c84601d06f45e1d4199b0db5e6
BLAKE2b-256 d5168b098549eedc422425dca151c8d06394cb7c373b9ae04f0927508c064625

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simpleods-1.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 232d20ef918e747756200af2f54e719634849b1de11341a0355d59b1e93596f8
MD5 5f7462df8a835f41a11797d85bab6238
BLAKE2b-256 3a5fd9d472268f67ebc3b5540e2883ddac9a5f402ad10a9cc6eb59a59f3bee74

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