{"id":20161335,"url":"https://github.com/asukhanov/apstrim","last_synced_at":"2026-02-07T23:04:23.782Z","repository":{"id":57411157,"uuid":"373188341","full_name":"ASukhanov/apstrim","owner":"ASukhanov","description":"Logger and extractor of time-series data.","archived":false,"fork":false,"pushed_at":"2025-10-17T19:27:58.000Z","size":322,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-23T22:43:21.623Z","etag":null,"topics":["archiver","compact","compression","control-systems","epics","extraction","fast","linux","logbook","messagepack","object","plotting","pv","pyqtgraph","python","random-access","raspberry-pi","self-descriptive","serialization","serializer"],"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/ASukhanov.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-06-02T14:01:19.000Z","updated_at":"2025-10-17T19:28:01.000Z","dependencies_parsed_at":"2025-01-16T20:36:02.071Z","dependency_job_id":"49fb6eda-bf88-4070-8ef2-3516fbb5f8e4","html_url":"https://github.com/ASukhanov/apstrim","commit_stats":{"total_commits":75,"total_committers":1,"mean_commits":75.0,"dds":0.0,"last_synced_commit":"ba7df9867090b578d1260b3db568fdfa12f2a69a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ASukhanov/apstrim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ASukhanov%2Fapstrim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ASukhanov%2Fapstrim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ASukhanov%2Fapstrim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ASukhanov%2Fapstrim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ASukhanov","download_url":"https://codeload.github.com/ASukhanov/apstrim/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ASukhanov%2Fapstrim/sbom","scorecard":{"id":7456,"data":{"date":"2025-08-11","repo":{"name":"github.com/ASukhanov/apstrim","commit":"3fc18a0f499a932abcfb90dfcc15abfcdab5877c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-14T13:53:00.370Z","repository_id":57411157,"created_at":"2025-08-14T13:53:00.370Z","updated_at":"2025-08-14T13:53:00.370Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29211622,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T22:58:45.823Z","status":"ssl_error","status_checked_at":"2026-02-07T22:58:45.272Z","response_time":63,"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":["archiver","compact","compression","control-systems","epics","extraction","fast","linux","logbook","messagepack","object","plotting","pv","pyqtgraph","python","random-access","raspberry-pi","self-descriptive","serialization","serializer"],"created_at":"2024-11-14T00:18:30.298Z","updated_at":"2026-02-07T23:04:23.768Z","avatar_url":"https://github.com/ASukhanov.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# apstrim\nLogger and extractor of time-series data (e.g. EPICS PVs).\n\n- Data are objects, indexed in time order.\n- Supported Control Infrastructures: EPICS ChannelAccess+PVAccess, ADO, LITE. Easy extendable.\n- Wide range of data objects: strings, lists, maps, numpy arrays, custom.\n- Data objects could be inhomogeneous and have arbitrary frequency.\n- Self-describing data format, no schema required.\n- Data objects are binary-serialized using MessagePack.\n- Fast online compression.\n- Fast random-access retrieval of data objects for selected time interval.\n- Simultaneous writing and reading.\n- Typical speed of compressed serialization to a logbook file is 80 MB/s.\n- De-serialization speed is up to 1200 MB/s when the logbook is cached in memory.\n- Basic plotting of the logged data.\n\n\u003cimg src='/docs/apstrim_file_format.png' width='400'\u003e\n\n## Installation\nDependencies: **msgpack, caproto, p4p, lz4framed**. \nThese packages will be installed using pip:\n\n    pip3 install apstrim\n\nThe example program for deserialization and plotting **apstrim.view**,\nrequires additional package: **pyqtgraph**.\n\n## API refrerence\n\n[apstrim](https://htmlpreview.github.io/?https://github.com/ASukhanov/apstrim/blob/main/docs/apstrim.html)\n\n[scan](https://htmlpreview.github.io/?https://github.com/ASukhanov/apstrim/blob/main/docs/scan.html)\n\n## Examples\n\n## Serialization\n\n\t# Serialization of one float64 parameter from an EPICS simulated scope IOC:\n\t:python -m apstrim -nEPICS -T59 testAPD:scope1:MeanValue_RBV\n\tLogging finished for 1 sections, 1 parLists, 7.263 KB.\n\t...\n\n    # The same with compression:\n\t:python -m apstrim -nEPICS -T59 testAPD:scope1:MeanValue_RBV --compress\n    Logging finished for 1 sections, 1 parLists, 6.101 KB. Compression ratio:1.19\n\t...\n\n    # Serialization 1000-element array and one scalar of floats:\n    :python -m apstrim -nEPICS -T59 testAPD:scope1:MeanValue_RBV,Waveform_RBV --compress\n    Logging finished for 1 sections, 2 parLists, 2405.354 KB. Compression ratio:1.0\n\t...\n\t# Note, Compression is poor for floating point arrays with high entropy.\n\n\t# Serialization of an incrementing integer parameter:\n\t:python -m apstrim -nLITE --compress liteHost:dev1:cycle\n    Logging finished for 1 sections, 1 parLists, 56.526 KB. Compression ratio:1.25\n\t...\n\t# In this case the normalized compressed volume is 9.3 bytes per entry.\n\t# Each entry consist of an int64 timestamp and an int64 value, which would \n\t# occupy 16 bytes per entry using standard writing.\n\n### De-serialization\nExample of deserialization and plotting of all parameters from several logbooks.\n\n    python -m apstrim.view -i all -p *.aps\n\nPython code snippet to extract items 1,2 and 3 from a logbook\nfor 20 seconds interval starting on 2021-08-12 at 23:31:31.\n\n```python\nfrom apstrim.scan import APScan\napscan = APScan('aLogbook.aps')\nheaders = apscan.get_headers()\nprint(f'{headers[\"Index\"]}')\nextracted = apscan.extract_objects(span=20, items=[1,2,3], startTime='210812_233131')\nprint(f'{extracted[3]}')# print the extracted data for item[3]\n# returned:\n{'par': 'liteBridge.peakSimulator:rps',           # object (PV) name of the item[3]\n'times': [1628825500.8938403, 1628825510.898658], # list of the item[3] timestamps\n'values': [95.675125, 95.55396]}                  # list of the item[3] values\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasukhanov%2Fapstrim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasukhanov%2Fapstrim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasukhanov%2Fapstrim/lists"}