DocumentationProject Structure
Project Structure
Learn how to organize your Pynions project files and understand the recommended project structure for building local marketing automation workflows.
Complete File Structure
pynions/
│
├── docs/ # Documentation files
│ ├── 01-project-structure.md # This file
│ ├── 02-installation.md # Installation instructions
│ ├── 03-configuration.md # Configuration guide
│ ├── 04-plugins.md # Plugin development guide
│ ├── 05-workflows.md # Workflow creation guide
│ ├── 06-debugging.md # Debugging guide
│ └── images/ # Documentation images
│
├── pynions/ # Main package directory
│ ├── __init__.py
│ ├── core.py # Core framework code
│ ├── plugins/ # Plugin modules
│ │ ├── __init__.py
│ │ ├── serper_plugin.py # Google SERP plugin
│ │ ├── litellm_plugin.py # AI models plugin
│ │ ├── playwright_plugin.py # Web scraping plugin
│ │ └── jina_plugin.py # Content extraction plugin
│ └── utils/ # Utility functions
│ ├── __init__.py
│ └── helpers.py
│
├── examples/ # Example workflows
│ ├── __init__.py
│ ├── serp_analysis.py # SERP analysis example
│ └── content_workflow.py # Content creation workflow
│
├── tests/ # Test files
│ ├── __init__.py
│ ├── test_core.py
│ └── test_plugins/
│ └── test_serper_plugin.py
│
├── data/ # Data storage directory
│ └── .gitkeep
│
├── .env.example # Example environment variables
├── .gitignore # Git ignore file
├── config.example.json # Example configuration
├── requirements.txt # Python dependencies
├── pytest.ini # pytest configuration
└── README.md # Project readme
Step-by-Step Setup on Mac
- Open Terminal and create project directory:
- Create all required files:
- Copy file contents (see separate guides for each file)
File Purposes
Core Files
pynions/core.py
: Main framework functionalityrequirements.txt
: Python package dependencies.env.example
: Template for environment variablesconfig.example.json
: Template for configuration
Plugin Files
serper_plugin.py
: Google SERP data extractionlitellm_plugin.py
: AI model integrationplaywright_plugin.py
: Web scrapingjina_plugin.py
: Content extraction
Documentation Files
01-project-structure.md
: Project organization (this file)02-installation.md
: Setup instructions03-configuration.md
: Configuration guide04-plugins.md
: Plugin development guide05-workflows.md
: Workflow creation guide06-debugging.md
: Troubleshooting guide
Example Files
serp_analysis.py
: SERP analysis workflowcontent_workflow.py
: Content creation workflow
Quick Copy-Paste Setup
Here's a one-liner to create the entire structure:
Next Steps
- See
02-installation.md
for setting up your Python environment - Follow
03-configuration.md
to configure your APIs - Check
examples/
directory for sample workflows - Read through the docs in order for detailed understanding
Notes
- All paths are relative to the project root
- The
data/
directory is for storing workflow results .gitkeep
files are used to track empty directories- Documentation follows a numbered sequence for easy navigation
Updated 5 days ago
Edit this page