Skip to main content

Python useful classes for office work automation

Project description

Coffeece

Python useful classes for office work automation. Currently working on Python 3.

Install

You can install this package using pip: pip install coffeece

Popup

Tkinter popup functions to:

  • show_info(title, message) -> shows a popup with the title and message provided.
  • ask_file() -> popup asks for a file through file explorer. Returns path as string.
  • ask_directory() -> popup asks for a directory through file explorer. Returns path as string.
  • ask_yes_no(title, message) -> shows a popup with the title and message provided and ask yes-no. If yes returns 'True'.

SQLiteDB

A class to manage SQLite3 databases. Now it could:

  • create_connection(self) -> Connect with sqlite3 DB (create it if there isn't). Returns conection object.
  • create_cursor(self) -> Create cursor to communicate with DB. Returns cursor.
  • create_table(cursor, table_name, table_columns) -> Create a table with the name (string) columns and column types (dictionary) given by the user.
  • insert_row(cursor, table_name, row_items) -> Inserts row into DB with the cursor (cursor), table name (string), and items (list) given by the user.
  • commit_changes(self) -> Save DB changes.
  • close_connection(self) -> Close connection to DB.
  • export_table_to_excel(self, table_name) -> Exports table to excel using Pandas library.

Third party dependencies:

  • Pandas

SysWalker

System navigation and recursion functions:

  • list_files_by_type(src_directory, file_extension) -> Make a list of all the files with the given file extension in the given directory. Returns list.

Why Coffeece?

The main reason behind this little classes is that a huge part of the mechanical work at a job office can be automated through this kind of objects. The other reason to use this is to make office scripts cleaner with an — even more — simplified dependency management.

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

coffeece-0.1.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

coffeece-0.1.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file coffeece-0.1.1.tar.gz.

File metadata

  • Download URL: coffeece-0.1.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5

File hashes

Hashes for coffeece-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d564c9bcc4c6031f4eca64fa37cde8a518e69b6ffd543f7faa404ab494176e7c
MD5 7c879b10822d75d8b82f15411269b2bb
BLAKE2b-256 33672fc8f5eaac5991d29d7ab37d14ad1eb77f46e0b303061053952680673a9d

See more details on using hashes here.

File details

Details for the file coffeece-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: coffeece-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5

File hashes

Hashes for coffeece-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f955da390611a796edef72c87a84adbef158b2bc2cd85860a765af2dd54f3161
MD5 4f55e41e2d469168db4e040372479d19
BLAKE2b-256 06e30493a13a185875878a3e17d1b911944158ce704ff280bd874c065859aaca

See more details on using hashes here.

Supported by

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