{"id":13509690,"url":"https://github.com/stocks29/exjprop","last_synced_at":"2026-05-21T05:32:58.196Z","repository":{"id":28718498,"uuid":"32239454","full_name":"stocks29/exjprop","owner":"stocks29","description":"Elixir library for reading Java properties files from various sources.","archived":false,"fork":false,"pushed_at":"2019-07-28T16:56:48.000Z","size":43,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-01T11:20:39.541Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/stocks29.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":"2015-03-15T01:04:18.000Z","updated_at":"2024-03-03T12:13:13.000Z","dependencies_parsed_at":"2022-09-10T07:21:58.657Z","dependency_job_id":null,"html_url":"https://github.com/stocks29/exjprop","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stocks29%2Fexjprop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stocks29%2Fexjprop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stocks29%2Fexjprop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stocks29%2Fexjprop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stocks29","download_url":"https://codeload.github.com/stocks29/exjprop/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244800901,"owners_count":20512552,"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-08-01T02:01:11.544Z","updated_at":"2025-12-11T23:33:33.680Z","avatar_url":"https://github.com/stocks29.png","language":"Elixir","funding_links":[],"categories":["Utilities"],"sub_categories":[],"readme":"Exjprop\n=======\n\n[![Build Status](https://travis-ci.org/stocks29/exjprop.svg?branch=master)](https://travis-ci.org/stocks29/exjprop)\n\nExjprop is a library for reading Java properties files from various sources.\n\nImplementations are provided for File, Stream, Function (which returns a stream), and Amazon S3.\n\nAPI documentation is available at http://hexdocs.pm/exjprop\n\n### Add as dependency\n\n```elixir\n{:exjprop, \"~\u003e 1.2\"}\n```\n\n### Load application properties at runtime\n\nFirst, define a property loader module\n\n```elixir\ndefmodule MyApp.PropLoader do\n  use Exjprop.Loader\n  import Exjprop.Validators, only: [required: 1]\n\n  property \"endpoint.secret\", {:my_app, MyApp.Endpoint, :secret_key_base}\n\n  property \"foo.bar\", {:my_app, MyApp.Foo, :bar}, secret: false, pipeline: [\u0026required/1]\n  property \"foo.quux\", {:my_app, MyApp.Foo, :quux}, secret: false, pipeline: [\u0026required/1, \u0026integer/1]\n\n  property \"other_app.thing\", {:other_app, :thing}, secret: false, pipeline: [\u0026required/1, \u0026integer/1]\nend\n```\n\nNext, when your application starts, have it read in your properties and update\nyour application environment\n\n```elixir\ndefmodule MyApp do\n  use Application\n  import Supervisor.Spec\n  alias MyApp.PropLoader\n\n  def start(_type, _args) do\n    PropLoader.load_and_update_env({:system, \"MYAPP_PROPS_FILE\"})\n    ...\n```\n\nThis configuration will cause the prop loader to read the `MYAPP_PROPS_FILE`\nenvironment var, and attempt to use that as a uri for loading a properties file.\nThe uri should either `file:///path/to/file.properties` or\n`s3:///myapp_bucket/path/to/s3/file.properties`.\n\n### Using S3 URLs\n\nTo enable support for retrieving property files from S3, a few additional dependencies are required.\n\n```elixir\n  {:ex_aws, \"~\u003e 2.1\"},\n  {:sweet_xml, \"~\u003e 0.6\"},\n```\n\nExAws also needs an HTTP client - it defaults to Hackney, but can be modified (see https://hexdocs.pm/ex_aws/ExAws.Request.HttpClient.html)\n\n### JSON\n\nEnable validators for json to keyword lists or maps\n\n```elixir\n  {:jason, \"~\u003e 1.1.2\"},\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstocks29%2Fexjprop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstocks29%2Fexjprop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstocks29%2Fexjprop/lists"}