Skip to main content

AttnSeeker

A Python package for attention-seeking functionality.

Features

  • Core attention-seeking functionality
  • Command-line interface
  • Extensible architecture
  • Comprehensive testing

Installation

You can install the package from PyPI:

pip install attnseeker

Or install from source:

git clone https://github.com/yourusername/attnseeker.git
cd attnseeker
pip install -e .

Usage

Basic Usage

from attnseeker import main_function
from attnseeker import AttnSeeker

# Use the main function
result = main_function()
print(result)  # "Hello from attnseeker!"

# Create an AttnSeeker instance
seeker = AttnSeeker("World")
greeting = seeker.greet()
print(greeting)  # "Hello, World! I'm seeking attention!"

Command Line Interface

The package also provides a command-line interface:

attnseeker --help
attnseeker --name "Alice"
attnseeker --verbose

Development

Setup Development Environment

  1. Clone the repository:

    git clone https://github.com/yourusername/attnseeker.git
    cd attnseeker
    
  2. Create a virtual environment:

    python -m venv .venv
    source .venv/bin/activate  # On Windows: .venv\Scripts\activate
    
  3. Install development dependencies:

    pip install -e ".[dev]"
    
  4. Install pre-commit hooks:

    pre-commit install
    

Running Tests

pytest

Code Formatting

The project uses Black for code formatting and isort for import sorting:

black src/ tests/
isort src/ tests/

Type Checking

mypy src/

Linting

flake8 src/ tests/

Building and Publishing

Build the Package

python -m build

Upload to PyPI

First, install the build tools:

pip install build twine

Then build and upload:

# Build the package
python -m build

# Upload to TestPyPI (for testing)
twine upload --repository testpypi dist/*

# Upload to PyPI (for production)
twine upload dist/*

Publishing Strategy

This project uses a multi-package strategy to reserve related names:

  1. attnseeker - Main package with full functionality
  2. attentionseeker - Placeholder package that redirects to attnseeker
  3. attention-seeker - Placeholder package that redirects to attnseeker

This ensures that all related package names are reserved and users are directed to the main package.

Using GitHub Actions

This repository includes GitHub Actions workflows for:

  • Running tests on multiple Python versions
  • Code quality checks
  • Automatic releases to PyPI

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

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

Changelog

[0.1.0] - 2024-01-01

  • Initial release
  • Basic attention-seeking functionality
  • Command-line interface
  • Placeholder packages for name reservation

Acknowledgments

  • Thanks to all contributors
  • Inspired by attention-seeking behavior patterns

Metadata

Release files for attnseeker 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for attnseeker 0.1.1
File Size Uploaded
attnseeker-0.1.1.tar.gz 9.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for attnseeker 0.1.1
File Interpreter ABI Platform
attnseeker-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 14.3 kB

Release files / attnseeker-0.1.1.tar.gz

Download URL attnseeker-0.1.1.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8d76f7818216712d4d27e2a75c74cef22def482db608ab19636ee505c5727597
BLAKE2b-256 checksum
How to use checksums
8b3e36afc8a1abb597129829b5a12f01c84daa2fe027d87b5832157b85b53e3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.11

Release files / attnseeker-0.1.1-py3-none-any.whl

Download URL attnseeker-0.1.1-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d0a285901f29825a844684bbef6d4777c8e49c6107ba7b6e403591b1293beca4
BLAKE2b-256 checksum
How to use checksums
7eba4933a668926bc7b964951150dd4634e07e709e723bed6164db4a243d437c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.11

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page