{"id":19682013,"url":"https://github.com/vicnesterenko/daily-cli-reporter","last_synced_at":"2025-06-11T04:06:39.190Z","repository":{"id":188772581,"uuid":"679254151","full_name":"vicnesterenko/Daily-CLI-reporter","owner":"vicnesterenko","description":"Daily Clockify reporter 🕑","archived":false,"fork":false,"pushed_at":"2023-08-18T07:40:06.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-10T05:56:11.232Z","etag":null,"topics":["api","clockify","requests"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vicnesterenko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-08-16T12:38:15.000Z","updated_at":"2023-09-19T18:00:19.000Z","dependencies_parsed_at":"2023-08-20T00:32:18.260Z","dependency_job_id":null,"html_url":"https://github.com/vicnesterenko/Daily-CLI-reporter","commit_stats":null,"previous_names":["vicnesterenko/daily-cli-reporter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicnesterenko%2FDaily-CLI-reporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicnesterenko%2FDaily-CLI-reporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicnesterenko%2FDaily-CLI-reporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicnesterenko%2FDaily-CLI-reporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vicnesterenko","download_url":"https://codeload.github.com/vicnesterenko/Daily-CLI-reporter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240990830,"owners_count":19889953,"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":["api","clockify","requests"],"created_at":"2024-11-11T18:09:26.223Z","updated_at":"2025-02-27T06:42:49.137Z","avatar_url":"https://github.com/vicnesterenko.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Daily-CLI-reporter\n\nThis repository contains the two scripts `Task6.py` and `info_workspaces.py`  for the Daily-CLI-reporter project using the Clockify API. \n\nThis guide will walk you through the steps to set up and use the code:\n\n### Prerequisites\n\n1. **Python**: Make sure you have Python installed on your system. You can download it from the official [Python website](https://www.python.org/downloads/).\n\n2. **Git**: If you're using Git, you'll need it installed. You can download it from the official [Git website](https://git-scm.com/downloads).\n\n3. **Clockify**: Register your account [Clockify website](https://clockify.me/), if you don't have. Generate the API key in your profile.\n\n### Installation\n\n1. **Clone the Repository**: Open a terminal and run the following command to clone this repository:\n\n   ```bash\n   git clone https://github.com/your-username/Daily-CLI-reporter.git\n   ```\n\n2. **Navigate to the Directory**: Change to the project directory:\n\n   ```bash\n   cd Daily-CLI-reporter\n   ```\n\n3. **Install Dependencies**: Install the required dependencies using pip:\n\n   ```terminal\n   pip install -r requirements.txt\n   ```\n\n4. **Install virtual environment**:\n\n   **On Windows:**\n\n   Navigate to the directory where you want to create your project and virtual environment:\n   ```terminal\n   cd path\\to\\your\\project\\directory\n    ```\n   Create a virtual environment with the name `your_venv_name`:\n   ```terminal\n   python -m venv your_venv_name\n    ```\n   Activate the virtual environment:\n   ```terminal\n   your_venv_name\\Scripts\\activate\n   ```\n    **On macOS and Linux:**\n   ```terminal\n   cd path/to/your/project/directory\n    ```\n   Create a virtual environment with the name `your_venv_name`\n   ```terminal\n   python3 -m venv your_venv_name\n    ```\n   Activate the virtual environment:\n   ```terminal\n   source your_venv_name/bin/activate\n   ```\n   When you're done working in the virtual environment, you can deactivate it:\n    ```terminal\n   deactivate\n   ```\n   \n\n### Usage\n\n1. **Obtain API Key and IDs**:\n   - Replace `API_KEY`, `WORKSPACE_ID`, and `PROJECT_ID` in the `Task6.py` file with your own Clockify API key, workspace ID, and project ID.\n\n2. **Run the Script**:\n   - Execute the `Task6.py` script to retrieve tasks from the specified workspace and project using the Clockify API:\n\n   ```terminal\n   python Task6.py\n   ```\n\n3. **View Task Report**:\n   - The script will print results for Task 6 and Task 8 of the test Python project for a job offer.\n   - The `TASK REPORT FOR TASKS SORTED BY DATE` section nicely groups tasks by date.\n   - `TASK REPORT FOR TASKS BY TIME TRACKER` section provides a summary of each task's total hours spent.\n   - The `TOTAL HOURS SPENT FOR TASKS` section gives an overall summary of the time tracked for all tasks.\n\n### Notes\n\n- The `ClockifyAPI` class in `Task6.py` handles API requests to retrieve workspace information, project information, and tasks.\n- The `get_all_workspaces_list` and `get_all_projectId_list` methods are provided but must be further implemented based on your needs.\n- The script uses the `requests` library to interact with the Clockify API.\n- The script `info_workspaces.py` is written with `clockify` library and after running the script, the workspace information will be displayed in a formatted manner by `pprint`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvicnesterenko%2Fdaily-cli-reporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvicnesterenko%2Fdaily-cli-reporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvicnesterenko%2Fdaily-cli-reporter/lists"}