https://github.com/cossio/localstore.jl
Local storage of objects.
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (6.4%) to scientific vocabulary
Repository
Local storage of objects.
Basic Info
- Host: GitHub
- Owner: cossio
- License: mit
- Language: Julia
- Default Branch: master
- Size: 120 KB
Statistics
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
- Releases: 4
Metadata Files
README.md
LocalStore Julia package
This package provides a simple interface for storing and retrieving Julia objects locally.
Example:
```julia using LocalStore
Define an item type. This should contain enough information
to be able to reconstruct the desired object.
struct A x::Int end
Since store location is based on hash, it is recommended to
define a hash function for custom types.
Base.hash(a::A, h::UInt) = hash(:A, hash(a.x, h))
Define how the item is stored on disk. The path is a dir, handled
automatically by the LocalStore package.
LocalStore.save(a::A, path::String) = open("$path/file.txt", "w") do f # some difficult computation you only want to do once x2 = a.x^2 # maybe download some remote files
# now save to disk the results
write(f, string(x2))
end
Define how the item is read from disk.
LocalStore.load(a::A, path::String) = open("$path/file.txt", "r") do f parse(Int, readline(f)) end
Automatically checks if the requested object is stored. If not,
it creates a local directory and saves it there and loads it.
Next time load is called, the stored object is returned.
a = LocalStore.load(A(5)) ```
Owner
- Name: Jorge Fernandez-de-Cossio-Diaz
- Login: cossio
- Kind: user
- Repositories: 24
- Profile: https://github.com/cossio
GitHub Events
Total
Last Year
Committers
Last synced: over 3 years ago
All Time
- Total Commits: 19
- Total Committers: 1
- Avg Commits per committer: 19.0
- Development Distribution Score (DDS): 0.0
Top Committers
| Name | Commits | |
|---|---|---|
| cossio | j****z@g****m | 19 |
Issues and Pull Requests
Last synced: 12 months ago
All Time
- Total issues: 1
- Total pull requests: 0
- Average time to close issues: less than a minute
- Average time to close pull requests: N/A
- Total issue authors: 1
- Total pull request authors: 0
- Average comments per issue: 2.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- JuliaTagBot (1)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
- Total downloads: unknown
- Total dependent packages: 1
- Total dependent repositories: 0
- Total versions: 4
juliahub.com: LocalStore
Local storage of objects.
- Documentation: https://docs.juliahub.com/General/LocalStore/stable/
- License: MIT
-
Latest release: 0.2.1
published over 4 years ago
Rankings
Dependencies
- actions/checkout v2 composite
- julia-actions/julia-buildpkg latest composite
- julia-actions/julia-runtest latest composite
- julia-actions/setup-julia v1 composite
- actions/checkout v2 composite
- julia-actions/setup-julia latest composite