Skip to main content

openpyxl

This module provides wrapper for openpyxl.

Installation

pip install takeme-openpyxl

Usage (Reader)

import takeme_openpyxl

INPUT_FILE_NAME = 'input.xlsx'
INPUT_COLUMNS = {
    'column1': {
        'label': 'Label 1',
        'column': 'A'
    },
    'column2': {
        'label': 'Label 2',
        'column': 'B'
    }
}

reader = takeme_openpyxl.ExcelReader(INPUT_FILE_NAME, INPUT_COLUMNS)
if reader.validate_labels() === True:
    row1_column1 = reader.get_value('column1')
    row1_column2 = reader.get_value('column2')
    print('Column1: {}, Column2: {}'.format(row1_column1, row1_column2))

    reader.next_row()

    row2_column1 = reader.get_value('column1')
    row2_column2 = reader.get_value('column2')
    print('Column1: {}, Column2: {}'.format(row1_column1, row1_column2))

reader.close()

Usage (Writer)

OUTPUT_FILE_NAME = 'output.xlsx'
OUTPUT_COLUMNS = {
    'column1': {
        'label': 'Label 1',
        'column': 'A'
    },
    'column2': {
        'label': 'Label 2',
        'column': 'B'
    }
}

writer = takeme_openpyxl.ExcelWriter(OUTPUT_COLUMNS)
writer.write('column1', 'Row1: Column1')
writer.write('column2', 'Row1: Column2')

writer.next_row()

writer.write('column1', 'Row2: Column1')
writer.write('column2', 'Row2: Column2')

writer.flush(OUTPUT_FILE_NAME)

Metadata

Release files for takeme-openpyxl 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for takeme-openpyxl 1.0.3
File Size Uploaded
takeme_openpyxl-1.0.3.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for takeme-openpyxl 1.0.3
File Interpreter ABI Platform
takeme_openpyxl-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 19.1 kB

Release files / takeme_openpyxl-1.0.3.tar.gz

Download URL takeme_openpyxl-1.0.3.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a4950801fe5af64fc458378195cfdf11f2c1da2c39f1f9586125956a117a3bc7
BLAKE2b-256 checksum
How to use checksums
0e1e53be715a1bb87fca32d5082d9c60589137db3999295a979017dc7bf01804
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

Release files / takeme_openpyxl-1.0.3-py3-none-any.whl

Download URL takeme_openpyxl-1.0.3-py3-none-any.whl
Size 16.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7cb0ab6044acfca3fdc3ab56cee8021a90953686d30e433a10df6999ec7e61f8
BLAKE2b-256 checksum
How to use checksums
866edb5c4ed95ff1421407f01af45097c04a7e2c014cae710accef3dbb5d20b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page