Skip to main content

smaprac - Social Media Analysis Practice Files

A practical collection of social media analysis practice files that includes both Python scripts (.py) and Jupyter notebooks (.ipynb) for network analysis, sentiment analysis, and discourse analysis.

Installation

Install the package using pip:

# Install from the local directory
pip install -e .

Usage

As a Python Package

Import modules in your .py files or notebooks:

from smaprac import get_notebooks_path, list_notebooks

# Get path to packaged notebooks
notebooks_dir = get_notebooks_path()

# List all available notebooks
available = list_notebooks()
print(available)

Command Line Interface

Download all practice files to a directory:

# List available files
smaprac download --list

# Download files to a folder (creates smaprac_files subdirectory)
smaprac download --dest /path/to/directory

Structure

  • 02_data_collection/ - Data collection experiments
  • 03_clean_store_preprocess/ - Data preprocessing
  • 04_sentiment_eda_n_visual/ - Sentiment analysis and visualization
  • 05_network/ - Network analysis
  • 07_discourse_network_communalytic/ - Discourse and community analysis
  • exp8/ - Additional experiments

Requirements

  • Python >= 3.7
  • click >= 8.0.0

License

MIT License - See LICENSE file for details

Metadata

Release files for smaprac 0.1.3

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

Source distribution (sdist)

Source distribution for smaprac 0.1.3
File Size Uploaded
smaprac-0.1.3.tar.gz 814.5 kB Details

Built distribution (wheel)

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

Total release size: 1.6 MB

Release files / smaprac-0.1.3.tar.gz

Download URL smaprac-0.1.3.tar.gz
Size 814.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b151a62f593a4a3330e61217f5775a11bff885649fbdc399770dce929ea2b253
BLAKE2b-256 checksum
How to use checksums
b006a14e9bc26c13c3dff50da1c24d4226807d5dc80b99b3cd0ae61950942c9b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / smaprac-0.1.3-py3-none-any.whl

Download URL smaprac-0.1.3-py3-none-any.whl
Size 822.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3e6cf38ea7c2f1443de83557e0d6abd63fc978be6d5f658393eacd79f7770217
BLAKE2b-256 checksum
How to use checksums
fc07b9c7433fd0d6b99cf048890fdf3b0793896209cc494fa5013c69cf70855a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

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