{"id":17647014,"url":"https://github.com/feanor12/draft.jl","last_synced_at":"2025-05-07T05:47:29.370Z","repository":{"id":42448206,"uuid":"477833065","full_name":"feanor12/Draft.jl","owner":"feanor12","description":"A small package to automatically create temporary environments in offline mode.","archived":false,"fork":false,"pushed_at":"2022-04-05T16:28:32.000Z","size":27,"stargazers_count":5,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T06:51:12.684Z","etag":null,"topics":["julia","julia-language","prototyping"],"latest_commit_sha":null,"homepage":"","language":"Julia","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/feanor12.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}},"created_at":"2022-04-04T18:52:01.000Z","updated_at":"2023-02-28T17:26:49.000Z","dependencies_parsed_at":"2022-08-28T14:21:10.668Z","dependency_job_id":null,"html_url":"https://github.com/feanor12/Draft.jl","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/feanor12%2FDraft.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feanor12%2FDraft.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feanor12%2FDraft.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feanor12%2FDraft.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/feanor12","download_url":"https://codeload.github.com/feanor12/Draft.jl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252823685,"owners_count":21809707,"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":["julia","julia-language","prototyping"],"created_at":"2024-10-23T11:09:41.718Z","updated_at":"2025-05-07T05:47:29.336Z","avatar_url":"https://github.com/feanor12.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Draft (WIP)\n\nPackage for faster prototyping without widespread implications for your Julia default installation. \n\n* Activates a temporary project when the module is loaded.\n* Enables offline mode when the module is loaded for a faster package adding. Locally installed packages will be reused.\n* Provides a macro to load and install a package: `@reuse PackageA` or `@reuse PackageA PackageB`.\n* Output of `@reuse` can be suppressed by calling `Draft.silent()`. Undo with `Draft.silent(false)`.\n* Provides a function to switch back to online mode: `Draft.online()`.\n* Provides a function to save the temporary Project.toml file to a target location: `save_environment(target_dir)`.\n\n## Install\n\n```julia\n] add https://github.com/feanor12/Draft.jl\n```\nor\n```julia\nimport Pkg\nPkg.add(url=\"https://github.com/feanor12/Draft.jl\")\n```\n\n## First Steps\n\n``` julia\n# enable / load Draft\nusing Draft\n# load StaticArrays and Unitful (works only if locally available)\n@reuse StaticArrays Unitful\n# save temporary environment \nsave_environment(\"./my_project\")\n```\n\n## Persistent usage\n\nIf you want  this package to be loaded by default, install it in your base environment and add \n```julia\nusing Draft\n```\nto the `.julia/config/startup.jl` file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeanor12%2Fdraft.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffeanor12%2Fdraft.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeanor12%2Fdraft.jl/lists"}