Skip to main content

Adds additional functionality on top of OpenPyXL

Project description

Introduction

OPX_Plus (OpenPyXL Plus) is an extension to OpenPyXL, a module for reading and writing .xlsx and similar files. OPX_Plus adds functions centred around creating regular reports based on a template file. You can log issues on the GitHub page.

Has the Following Dependencies

import openpyxl, glob, webbrowser, warnings, csv, datetime, os, time
from copy import copy
from openpyxl.formula.translate import Translator

Functions

Files

- get_file_path(file_path, name_search, *if_missing_urls)
- check_mandatory_files(f_list)

- open_template(template_path: object, *date_cells: str, previousday=False)
- save_file(new_file_location, file_name, workbook, afterdatetext="", previousday=False)
- remove(file_path)

Import Data

- open_vals_only_sheet(from_wb_path, sheet_id=0):
- paste_sheet_to_sheet(from_ws, to_ws, cell_range)
- paste_to_sheet(xlsx or csv file location, ws)
- paste_df_to_sheet(df, to_ws, include_header=False)

Move Data

- copy_over_and_down_formulas(from_ws, to_ws, formula_cells)
- paste_cells_to_cells(from_ws, to_ws, from_cell_range, offset=(0, 0))

Sub-Functions

- count_rows(ws)
- count_columns(ws)
- num_to_excel_col(n)
- excel_col_to_num(a)

- to_unix_time(year=datetime.datetime.now().year, month=datetime.datetime.now().month,
                 day=datetime.datetime.now().day, hour=datetime.datetime.now().hour,
                 minute=datetime.datetime.now().minute, second=datetime.datetime.now().second, add_3_zeros=False,
                 subtract=datetime.timedelta(0))
- date_ranger()
- worksheet_reset(sheet_nam, wb)

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

opx_plus-0.1.8.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

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

opx_plus-0.1.8-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file opx_plus-0.1.8.tar.gz.

File metadata

  • Download URL: opx_plus-0.1.8.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for opx_plus-0.1.8.tar.gz
Algorithm Hash digest
SHA256 dc3f5f97efd6bcae6b64586f8a382032cf97081b36be854d438039ad3c3914f9
MD5 9c62d59e0b10d5d9c44392ea17ac9c1e
BLAKE2b-256 45dc6c32f7adebce3279b754f53da3b8a6f08996aaf7aeef135cd8cb715e3cbf

See more details on using hashes here.

File details

Details for the file opx_plus-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: opx_plus-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for opx_plus-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 e40eb59846b79df50b37cec7ba0b10138ee7c7edee8f7ee60178fbbb851ee63c
MD5 4ce407bdae2d3b9b6249eea6b866e59b
BLAKE2b-256 aa508b446975afe1932c423d1a81677af3cd3694d1ddc9b792bf686788e3476b

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