Skip to main content

A Python package for keyword analysis from Excel files.

Project description

Keywads Library

About

The Keywads Library is a Python package designed to simplify the process of analyzing keyword data from Excel files. It includes tools for transforming source files into a standardized format and analyzing keyword metrics to rank keywords based on competition and search volume.

Installation

To use this library, clone or download it into your project directory or a location in your Python path.

git clone https://github.com/hashangit/keywads.git

Prerequisites

Ensure you have Python and pandas installed in your environment:

pip install pandas

How to Use

Structure Your Application Folder

We recommend structuring your application folder as follows for ease of use with default settings:

your_project/
│
├── keywads/
│   ├── __init__.py
│   ├── source_file_transformer.py
│   └── keyword_analyzer.py
│
├── data/
│   └── your_source_file.xlsx
│
├── output/
│
└── your_script.py

Example Usage

  1. Transforming a Source File: First, ensure your source Excel file is in the data folder. Then use SourceFileTransformer to standardize the format.

  2. Analyzing Keywords: After transforming the source file, use KeywordAnalyzer to analyze and rank keywords, saving the results in the output folder.

Here's an example snippet you can put in your_script.py:

from keywads import SourceFileTransformer, KeywordAnalyzer

# Transform the source file
transformer = SourceFileTransformer(source_file_path='data/your_source_file.xlsx')
transformer.load_and_transform_source()
transformer.save_transformed_file()

# Analyze keywords
analyzer = KeywordAnalyzer()
analyzer.run_analysis()

This will process your_source_file.xlsx from the data folder, standardize it, and then analyze the keywords, saving the results as top_200_keywords_adjusted.xlsx in the output folder.

Custom Paths

You can also specify custom paths for both the source and output files if your project structure differs from the recommended setup:

# Specify custom paths
custom_source_path = 'path/to/your/custom_source_file.xlsx'
custom_output_path = 'path/to/your/custom_output_directory/'

# Initialize the transformer with a custom path
transformer = SourceFileTransformer(source_file_path=custom_source_path)
transformer.load_and_transform_source()
transformer.save_transformed_file(output_path=custom_output_path + 'Keyword_Stat.xlsx')

# Initialize the analyzer with custom input and output paths
analyzer = KeywordAnalyzer(file_path=custom_output_path + 'Keyword_Stat.xlsx')
analyzer.run_analysis(output_file_name='Custom_Top_200_Keywords.xlsx')

Note

Remember to replace your_source_file.xlsx, path/to/your/custom_source_file.xlsx, and path/to/your/custom_output_directory/ with the actual paths to your files and directories.

Support

For support, please open an issue in the GitHub repository at https://github.com/hashangit/keywads.

License

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

keywads-0.1.5.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

keywads-0.1.5-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file keywads-0.1.5.tar.gz.

File metadata

  • Download URL: keywads-0.1.5.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.7

File hashes

Hashes for keywads-0.1.5.tar.gz
Algorithm Hash digest
SHA256 0c1e804cf2c892cb85d8e67664f19d074700a4094aed1cbde0b1b14c13e5183f
MD5 fcd63961dbcf551103d4fe4fae770eb7
BLAKE2b-256 bf25fcdf1e3e5fbb8b8f1494e8595f15f855c7908149b916c9847f615f761393

See more details on using hashes here.

File details

Details for the file keywads-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: keywads-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.7

File hashes

Hashes for keywads-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f14749ce33d7c2f505c60f5b94f1931132571e37061c28b31761d06eb805cdb3
MD5 76157a8ef5bd9e4d29dec8204c7a47f8
BLAKE2b-256 79f1f312aca0d93ea7ec93977b38cd475d4129dd7e8f1073a363c2ed9d593643

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