tinyoffice


Nametinyoffice JSON
Version 0.0.4 PyPI version JSON
download
home_pageNone
SummaryMake your Office files tiny!
upload_time2024-04-02 15:25:12
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseNone
keywords office compress convert image word excel powerpoint
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## tinyoffice

Make your Office files tiny!

`tinyoffice` attemps to compresses and optionally convert the embedded image files in your Office files.


## Installation

You can install `tinyoffice` from PyPi:

```
% pip install tinyoffice
```

NOTE: `tinyoffice` requires `Pillow` (`PIL` Fork) [Pillow](https://pillow.readthedocs.io/en/stable/), which can have installation conflicts. If you experience any issues while installing `tinyoffice`, please follow the `Pillow` installation steps found here: https://pillow.readthedocs.io/en/stable/installation.html.


## Usage

```
usage: tinyoffice [-h] [-r] [-c] [-v]
                  [-t .docx .pptx .xlsx [.docx .pptx .xlsx ...]] [--overwrite]
                  [-o OUTPUT] [-exts EXTENSIONS [EXTENSIONS ...]]
                  path

Make your Office files tiny!

positional arguments:
  path                  File or directory path.
                        If a file and recurse (-r/--recurse) is not set, only that file will be compressed.
                        If a directory and recurse is not set, only the top-level files in the directory will be compressed.
                        If recurse is set, everything at path and below will be compressed.

options:
  -h, --help            show this help message and exit
  -r, --recurse         Flag for if tinyoffice should recursively search for files. Default is False
  -c, --convert         Flag for if TIFF files should be converted to JPEGs. Default is False
  -v, --verbose         Flag for verbosity levels. Can be set multiple times, e.g., -vv, for increased verbosity
  -t .docx .pptx .xlsx [.docx .pptx .xlsx ...], --types .docx .pptx .xlsx [.docx .pptx .xlsx ...]
                        Filetype extensions to compress.
                        Default is .docx, .pptx, .xlsx
  --overwrite           Flag for if an existing file should be overwritten. Default is False
  -o OUTPUT, --output OUTPUT
                        Path for the output location.
  -exts EXTENSIONS [EXTENSIONS ...], --extensions EXTENSIONS [EXTENSIONS ...]
                        Image extensions to compress. Default will be only the extensions that are supported by Pillow on your system.
                        Should be ignored.
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "tinyoffice",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "office, compress, convert, image, Word, Excel, Powerpoint",
    "author": null,
    "author_email": "Samuel Woodward <sam@woodward.fyi>",
    "download_url": "https://files.pythonhosted.org/packages/a1/9b/5ba801f1a30cc2725ebf4dc071d70d7a06b20494dc8596c4329d2026c390/tinyoffice-0.0.4.tar.gz",
    "platform": null,
    "description": "## tinyoffice\n\nMake your Office files tiny!\n\n`tinyoffice` attemps to compresses and optionally convert the embedded image files in your Office files.\n\n\n## Installation\n\nYou can install `tinyoffice` from PyPi:\n\n```\n% pip install tinyoffice\n```\n\nNOTE: `tinyoffice` requires `Pillow` (`PIL` Fork) [Pillow](https://pillow.readthedocs.io/en/stable/), which can have installation conflicts. If you experience any issues while installing `tinyoffice`, please follow the `Pillow` installation steps found here: https://pillow.readthedocs.io/en/stable/installation.html.\n\n\n## Usage\n\n```\nusage: tinyoffice [-h] [-r] [-c] [-v]\n                  [-t .docx .pptx .xlsx [.docx .pptx .xlsx ...]] [--overwrite]\n                  [-o OUTPUT] [-exts EXTENSIONS [EXTENSIONS ...]]\n                  path\n\nMake your Office files tiny!\n\npositional arguments:\n  path                  File or directory path.\n                        If a file and recurse (-r/--recurse) is not set, only that file will be compressed.\n                        If a directory and recurse is not set, only the top-level files in the directory will be compressed.\n                        If recurse is set, everything at path and below will be compressed.\n\noptions:\n  -h, --help            show this help message and exit\n  -r, --recurse         Flag for if tinyoffice should recursively search for files. Default is False\n  -c, --convert         Flag for if TIFF files should be converted to JPEGs. Default is False\n  -v, --verbose         Flag for verbosity levels. Can be set multiple times, e.g., -vv, for increased verbosity\n  -t .docx .pptx .xlsx [.docx .pptx .xlsx ...], --types .docx .pptx .xlsx [.docx .pptx .xlsx ...]\n                        Filetype extensions to compress.\n                        Default is .docx, .pptx, .xlsx\n  --overwrite           Flag for if an existing file should be overwritten. Default is False\n  -o OUTPUT, --output OUTPUT\n                        Path for the output location.\n  -exts EXTENSIONS [EXTENSIONS ...], --extensions EXTENSIONS [EXTENSIONS ...]\n                        Image extensions to compress. Default will be only the extensions that are supported by Pillow on your system.\n                        Should be ignored.\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Make your Office files tiny!",
    "version": "0.0.4",
    "project_urls": {
        "Homepage": "https://github.com/PyWoody/tinyoffice"
    },
    "split_keywords": [
        "office",
        " compress",
        " convert",
        " image",
        " word",
        " excel",
        " powerpoint"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "af0c186841e4dd42db89fcb02fa9751fbd6f1075c59589989bc77a679ef12dd5",
                "md5": "2490c5e40aa11736c05609465245c149",
                "sha256": "84846d106fc23edfa1ad0ac8374bbe19aa6127264cb7cfdc182d6f7538250eda"
            },
            "downloads": -1,
            "filename": "tinyoffice-0.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2490c5e40aa11736c05609465245c149",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 8647,
            "upload_time": "2024-04-02T15:25:10",
            "upload_time_iso_8601": "2024-04-02T15:25:10.775530Z",
            "url": "https://files.pythonhosted.org/packages/af/0c/186841e4dd42db89fcb02fa9751fbd6f1075c59589989bc77a679ef12dd5/tinyoffice-0.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a19b5ba801f1a30cc2725ebf4dc071d70d7a06b20494dc8596c4329d2026c390",
                "md5": "ad4049346f324fc8c92548097bff2a05",
                "sha256": "791f524ac17df55bb0ee71f4315725b368174107327daa791f8d6a3d7839e8a7"
            },
            "downloads": -1,
            "filename": "tinyoffice-0.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "ad4049346f324fc8c92548097bff2a05",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 9762,
            "upload_time": "2024-04-02T15:25:12",
            "upload_time_iso_8601": "2024-04-02T15:25:12.477781Z",
            "url": "https://files.pythonhosted.org/packages/a1/9b/5ba801f1a30cc2725ebf4dc071d70d7a06b20494dc8596c4329d2026c390/tinyoffice-0.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-02 15:25:12",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "PyWoody",
    "github_project": "tinyoffice",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "tinyoffice"
}
        
Elapsed time: 0.21742s