{"id":21206209,"url":"https://github.com/rtmigo/tsfile_py","last_synced_at":"2026-04-28T09:35:13.970Z","repository":{"id":138533562,"uuid":"365337160","full_name":"rtmigo/tsfile_py","owner":"rtmigo","description":"Python package for solving a specific task: reading the date stored in a timestamp.txt.","archived":false,"fork":false,"pushed_at":"2021-05-07T21:49:09.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"staging","last_synced_at":"2025-01-21T15:32:12.447Z","etag":null,"topics":[],"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/rtmigo.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":"2021-05-07T19:43:33.000Z","updated_at":"2021-05-07T21:49:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"6cbaff51-9161-4581-be49-e5cb5f52d108","html_url":"https://github.com/rtmigo/tsfile_py","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtmigo%2Ftsfile_py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtmigo%2Ftsfile_py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtmigo%2Ftsfile_py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtmigo%2Ftsfile_py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rtmigo","download_url":"https://codeload.github.com/rtmigo/tsfile_py/tar.gz/refs/heads/staging","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243658274,"owners_count":20326467,"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":[],"created_at":"2024-11-20T20:54:47.557Z","updated_at":"2025-12-30T12:57:40.911Z","avatar_url":"https://github.com/rtmigo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Python package for solving a specific task: reading the date stored in \na `timestamp.txt`. \n\n# Install\n\n``` bash\n\n$ pip install git+https://github.com/rtmigo/tsfile_py#egg=tsfile\n\n```\n\n## timestamp.txt\n\nSample content `my_project/timestamp.txt`:\n\n``` text\n2021-05-07 22:01:44 +03\n```\n\nFor example, such file can be created before deploying the project with as command:\n``` bash \ndate +\"%Y-%m-%d %H:%M:%S %Z\" \u003e /path/to/my_project/timestamp.txt\n```\n\n## TimestampFile object\n\nWhen created, the `TimestampFile` object scans the parent directories. The \nsearch stops when the parent contains a `timestamp.txt`.\n\nThat is, you can create a `TimestampFile` in any module located in any \nsubdirectory of `my_project`. For example, in `my_project/dir/subdir/module.py`:\n\n``` python\nfrom tsfile import TimestampFile\n\nbuild_timestamp = TimestampFile()\n\nprint(build_timestamp.text)       # '2021-05-07 22:01:44 +03'\nprint(build_timestamp.time)       # datetime.datetime\nprint(build_timestamp.version)    # '21.253.835' (generated from timestamp)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frtmigo%2Ftsfile_py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frtmigo%2Ftsfile_py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frtmigo%2Ftsfile_py/lists"}