Skip to main content

CLI tool to export Trello board data to a CSV file.

Project description

Trello CSV Exporter

A simple command-line tool to export Trello board data into a CSV-compatible Excel file. You can choose to save the file locally or upload it directly to an AWS S3 bucket.

Features

  • Export Trello data: Export your Trello board’s cards, lists, and labels into an Excel sheet.
  • Save locally or upload to S3: Save the generated file to a local directory or upload it directly to AWS S3.
  • AWS profile support: Optionally configure AWS profiles for seamless S3 uploads.

Installation

1. Install the tool via pip

You can install the tool from PyPI:

pip install trello-csv

2. Set up your credentials

  • Trello API Key and Token: You will need your Trello API key and token. These can be obtained from the Trello Developer Page. You can store these in a .env file or set them as environment variables.

  • AWS Credentials (optional for S3 uploads): Set up your AWS credentials through the AWS CLI or environment variables for S3 uploads.

Example .env File:

TRELLO_API_KEY=your_api_key
TRELLO_ACCESS_TOKEN=your_access_token
AWS_ACCESS_KEY_ID=your_aws_access_key
AWS_SECRET_ACCESS_KEY=your_aws_secret_key
AWS_REGION=your_aws_region

Usage

1. Export Trello Board Data

Run the following command to start the exporter:

trello-csv

2. Specify Output Directory

You can specify where to save the generated file:

  • Save Locally (to a specific directory):
trello-csv --output-dir ./csv

If the --output-dir option is omitted, the file will be saved to your system’s default Downloads folder:

  • macOS/Linux: ~/Downloads

  • Windows: C:\Users\YourUsername\Downloads

  • Upload to AWS S3:

trello-csv --output-dir s3://your-bucket-name/path/to/directory/

3. Specify AWS Profile (optional)

If you use multiple AWS profiles, you can specify the profile to use:

trello-csv --aws-profile my-aws-profile

Example Command

  1. Save file locally:
trello-csv --output-dir ./trello_exports
  1. Upload to AWS S3:
trello-csv --output-dir s3://my-bucket/trello_exports --aws-profile my-aws-profile

This will export your Trello board data to ./trello_exports or directly to the S3 bucket my-bucket/trello_exports.

Development (Optional)

If you want to contribute or build the project locally, here are the steps:

1. Clone the repository:

git clone https://github.com/your-username/trello-csv-exporter.git
cd trello-csv-exporter

2. Set up the virtual environment and install dependencies:

python -m venv venv
source venv/bin/activate  # On Linux/macOS
.\venv\Scripts\activate   # On Windows
pip install -r requirements.txt

3. Build the package:

To build the package locally, run:

make install

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

trello_csv-1.0.3.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

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

trello_csv-1.0.3-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: trello_csv-1.0.3.tar.gz
  • Upload date:
  • Size: 18.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for trello_csv-1.0.3.tar.gz
Algorithm Hash digest
SHA256 a7446ce9432d759a4fa7958622ec2c4333350ccba2f228c48c929657a261d11d
MD5 1aceed140d7a35a4c87896fa124d703d
BLAKE2b-256 216201e105c66687ffbd2cf2ce658bbbe04f51b8f78937b169234a9de4c37346

See more details on using hashes here.

File details

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

File metadata

  • Download URL: trello_csv-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 17.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for trello_csv-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 894996ceb876ab73f28f6396f36df35be149c9b45065902d8e6643b2b2997a46
MD5 b13ac2b4e16c40ee7c529084d86687f7
BLAKE2b-256 77d5089c6e74f1ddf914b7009b39b2d62a86b2c3e1ce41aad90fe6e7c252d783

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