Skip to content

foscraft/bash_cpp_python

Repository files navigation

Phone Number Processing Service

This service processes phone numbers from CSV files by integrating C++ and Python.

Overview

  • C++ Module: Uses pybind11 to compile high-performance phone number processing logic.
  • Python Integration: Reads a CSV file, applies the processing from the C++ module, and writes the results to a text file.
  • Shell Script: Automates compilation of the C++ module and executes the Python processing script.

Features

  • Efficient Processing: Leverages C++ for performance-critical operations.
  • Simple Integration: Uses pybind11 for a seamless interface between C++ and Python.
  • Easy Deployment: Shell script (run.sh) compiles code and runs the entire workflow.

Getting Started

  1. Ensure Python3, g++, and pybind11 are installed.

  2. Run the service using the shell script:

    ./run.sh
  3. Processed phone numbers are saved in processed_phone_numbers.txt.

Project Structure

  • phone_processor.cpp: C++ code that processes phone numbers.
  • process_csv.py: Python script that reads, processes, and saves phone numbers.
  • run.sh: Shell script to compile and run the project.
  • .gitignore: Configuration to ignore unwanted or generated files.

This project is designed for Linux-based environments.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published