{"id":28237031,"url":"https://github.com/pyfunc/pyfunc3","last_synced_at":"2026-03-02T22:03:38.891Z","repository":{"id":293240869,"uuid":"983400440","full_name":"pyfunc/pyfunc3","owner":"pyfunc","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-15T09:56:14.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-05T00:12:12.714Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pyfunc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-14T10:25:22.000Z","updated_at":"2025-06-29T23:15:40.000Z","dependencies_parsed_at":"2025-05-14T11:45:41.834Z","dependency_job_id":"798fed35-fd32-4f64-af9d-09e4183992b9","html_url":"https://github.com/pyfunc/pyfunc3","commit_stats":null,"previous_names":["pyfunc/pyfunc3"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pyfunc/pyfunc3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyfunc%2Fpyfunc3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyfunc%2Fpyfunc3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyfunc%2Fpyfunc3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyfunc%2Fpyfunc3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyfunc","download_url":"https://codeload.github.com/pyfunc/pyfunc3/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyfunc%2Fpyfunc3/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30021802,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T21:50:36.781Z","status":"ssl_error","status_checked_at":"2026-03-02T21:50:28.329Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-19T00:17:17.532Z","updated_at":"2026-03-02T22:03:38.855Z","avatar_url":"https://github.com/pyfunc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyfunc2\n\nA collection of Python packages for the month project, providing utilities for file operations, configuration management, email handling, and OCR processing.\n\n## Package Structure\n\nThe `pyfunc2` package is organized into several subpackages:\n\n- **pyfunc2-file**: File operations utilities\n- **pyfunc2-config**: Configuration management utilities\n- **pyfunc2-email**: Email handling utilities\n- **pyfunc2-ocr**: OCR processing utilities for PDF documents\n\n## Installation\n\nYou can install the packages individually or the main package which includes all subpackages:\n\n```bash\n# Install main package\npip install pyfunc2\n\n# Or install individual packages\npip install pyfunc2-file\npip install pyfunc2-config\npip install pyfunc2-email\npip install pyfunc2-ocr\n```\n\n## Usage\n\n### File Operations\n\n```python\nfrom pyfunc2.file import create_folder, check_and_create_path\n\n# Create a directory\ncreate_folder(\"path/to/directory\")\n\n# Check and create a path if it doesn't exist\ncheck_and_create_path(\"path/to/directory\")\n```\n\n### Configuration Management\n\n```python\nfrom pyfunc2.config import get_config, get_email_path\n\n# Get configuration values\nconfig = get_config(folder=\"/.cfo/\", key=\"emails\")\n\n# Get email path\nemail_path = get_email_path(\"target\", \"storage_root\")\n```\n\n### Email Handling\n\n```python\nfrom pyfunc2.email import connect, download_emails, download_all_attachments_in_inbox\n\n# Connect to an email server\nmail = connect(\"imap.example.com\", \"username\", \"password\")\n\n# Download emails\ndownload_emails(\"imap.example.com\", \"username\", \"password\", \"local_path\", \"INBOX\", limit=50, month=5, year=2023)\n\n# Download attachments\ndownload_all_attachments_in_inbox(\"imap.example.com\", \"username\", \"password\", \"local_path\", \"INBOX\")\n```\n\n### OCR Processing\n\n```python\nfrom pyfunc2.ocr import get_company_from_pdf, get_date_from_pdf, get_date_from_pdf_pattern, CompanyList\n\n# Get company list\ncompany_list = CompanyList().sorted_from_shortest_to_longest_name()\n\n# Extract company from PDF\ncompanies = get_company_from_pdf(\"path/to/file.pdf\", [], company_list)\n\n# Extract date from PDF\ndates = get_date_from_pdf(\n    \"path/to/file.pdf\",\n    get_date_from_pdf_pattern.format_out_list,\n    [\"remove_extra_spaces\"],\n    get_date_from_pdf_pattern.pattern_input_list,\n    ['en_US', 'de_DE']\n)\n```\n\n## Development\n\nThis project uses Poetry for dependency management. To set up the development environment:\n\n```bash\n# Install Poetry\npip install poetry\n\n# Install dependencies\ncd pyfunc2\npoetry install\n\n# Build the package\npoetry build\n```\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyfunc%2Fpyfunc3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyfunc%2Fpyfunc3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyfunc%2Fpyfunc3/lists"}