{"id":23223806,"url":"https://github.com/guilhermecaz/pylibcsv","last_synced_at":"2025-04-05T16:34:40.093Z","repository":{"id":249578613,"uuid":"829001150","full_name":"GuilhermeCAz/pylibcsv","owner":"GuilhermeCAz","description":"This repository represents my solution to a challenge which involved generating a shared-object using Cython to handle CSVs","archived":false,"fork":false,"pushed_at":"2024-07-21T22:56:23.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-11T13:39:12.153Z","etag":null,"topics":["csv","cython","python","shared-library"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GuilhermeCAz.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}},"created_at":"2024-07-15T14:54:01.000Z","updated_at":"2024-08-16T17:33:34.000Z","dependencies_parsed_at":"2024-07-22T00:45:31.497Z","dependency_job_id":"6b73d6dd-00d2-4f74-adab-315c39e5a6f5","html_url":"https://github.com/GuilhermeCAz/pylibcsv","commit_stats":null,"previous_names":["guilhermecaz/pylibcsv"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuilhermeCAz%2Fpylibcsv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuilhermeCAz%2Fpylibcsv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuilhermeCAz%2Fpylibcsv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuilhermeCAz%2Fpylibcsv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GuilhermeCAz","download_url":"https://codeload.github.com/GuilhermeCAz/pylibcsv/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247368542,"owners_count":20927907,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["csv","cython","python","shared-library"],"created_at":"2024-12-18T23:19:26.972Z","updated_at":"2025-04-05T16:34:40.073Z","avatar_url":"https://github.com/GuilhermeCAz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# libcsv\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Python Version from PEP 621 TOML](https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2FGuilhermeCAz%2Fshurl_django%2Fmain%2Fpyproject.toml\u0026logo=python\u0026label=Python)](https://www.python.org/downloads/)\n[![Pytest](https://img.shields.io/badge/pytest-white?logo=pytest\u0026logoColor=%230A9EDC)](https://github.com/pytest-dev/pytest)\n[![Docker](https://img.shields.io/badge/Docker-%232496ED?logo=docker\u0026logoColor=white)](https://www.docker.com/)\n[![Make](https://img.shields.io/badge/Make-%236D00CC?logo=make)](https://www.gnu.org/software/make/)\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n[![Checked with mypy](https://www.mypy-lang.org/static/mypy_badge.svg)](https://mypy-lang.org/)\n\n## Overview\n\nThis project demonstrates an efficient integration of Python and C (using Cython) for building a shared library for CSV processing, developed as part of a code challenge in a recruitment process.\n\nThe original challenge contained the [Dockerfile](Dockerfile), [libcsv.h](libcsv.h) and `test_libcsv` files. These files should not be modified. Instead, the [build.sh](build.sh) script should contain the steps to build a shared object, containing functions declared in [libcsv.h](libcsv.h).\n\n`test_libcsv` was an ELF executable containing a single test to verify if the shared object was loaded correctly. The company requested not to share it (nor the challenge requirements) for security reasons. As such, the original `docker run` command is now invalid.\n\n## Installation and Execution\n\n1. Build the Docker image `(make build)`:\n\n   ```bash\n   docker build -t libcsv .\n   ```\n\n2. Run the Docker image (no longer valid) `(make run)`:\n\n   ```bash\n   docker run -it libcsv\n   ```\n\n3. Execute Python tests `(make tests)`:\n\n   ```bash\n   docker run -it libcsv /bin/sh -c \"source /app/.venv/bin/activate \u0026\u0026 pytest\"\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguilhermecaz%2Fpylibcsv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguilhermecaz%2Fpylibcsv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguilhermecaz%2Fpylibcsv/lists"}