File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11/_build
2+ /cover
23/deps
34erl_crash.dump
45* .ez
Original file line number Diff line number Diff line change 1- # tqdm_elixir
2- Add a progress bar to your enumerables in a second
1+ # TqdmElixir
2+
3+ Add a progress bar to your enumerables in a second.
4+
5+ A port of Python's [ tqdm] ( https://github.com/noamraph/tqdm ) to Elixir. Thanks noamraph for the original library!
6+
7+ ## Installation
8+
9+ If [ available in Hex] ( https://hex.pm/docs/publish ) , the package can be installed as:
10+
11+ 1 . Add tqdm_elixir to your list of dependencies in ` mix.exs ` :
12+
13+ def deps do
14+ [{:tqdm_elixir, "~> 0.0.1"}]
15+ end
16+
17+ 2 . Ensure tqdm_elixir is started before your application:
18+
19+ def application do
20+ [applications: [:tqdm_elixir]]
21+ end
Original file line number Diff line number Diff line change 1+ # This file is responsible for configuring your application
2+ # and its dependencies with the aid of the Mix.Config module.
3+ use Mix.Config
4+
5+ # This configuration is loaded before any dependency and is restricted
6+ # to this project. If another project depends on this project, this
7+ # file won't be loaded nor affect the parent project. For this reason,
8+ # if you want to provide default values for your application for
9+ # 3rd-party users, it should be done in your "mix.exs" file.
10+
11+ # You can configure for your application as:
12+ #
13+ # config :tqdm_elixir, key: :value
14+ #
15+ # And access this configuration in your application as:
16+ #
17+ # Application.get_env(:tqdm_elixir, :key)
18+ #
19+ # Or configure a 3rd-party app:
20+ #
21+ # config :logger, level: :info
22+ #
23+
24+ # It is also possible to import configuration files, relative to this
25+ # directory. For example, you can emulate configuration per environment
26+ # by uncommenting the line below and defining dev.exs, test.exs and such.
27+ # Configuration from the imported file will override the ones defined
28+ # here (which is why it is important to import them last).
29+ #
30+ # import_config "#{Mix.env}.exs"
Original file line number Diff line number Diff line change 1+ defmodule TqdmElixir do
2+ end
Original file line number Diff line number Diff line change 1+ defmodule TqdmElixir.Mixfile do
2+ use Mix.Project
3+
4+ def project do
5+ [ app: :tqdm_elixir ,
6+ version: "0.0.1" ,
7+ elixir: "~> 1.1" ,
8+ build_embedded: Mix . env == :prod ,
9+ start_permanent: Mix . env == :prod ,
10+ deps: deps ]
11+ end
12+
13+ # Configuration for the OTP application
14+ #
15+ # Type "mix help compile.app" for more information
16+ def application do
17+ [ applications: [ :logger ] ]
18+ end
19+
20+ # Dependencies can be Hex packages:
21+ #
22+ # {:mydep, "~> 0.3.0"}
23+ #
24+ # Or git/path repositories:
25+ #
26+ # {:mydep, git: "https://github.com/elixir-lang/mydep.git", tag: "0.1.0"}
27+ #
28+ # Type "mix help deps" for more examples and options
29+ defp deps do
30+ [ ]
31+ end
32+ end
Original file line number Diff line number Diff line change 1+ ExUnit . start ( )
Original file line number Diff line number Diff line change 1+ defmodule TqdmElixirTest do
2+ use ExUnit.Case
3+ doctest TqdmElixir
4+
5+ test "the truth" do
6+ assert 1 + 1 == 2
7+ end
8+ end
You can’t perform that action at this time.
0 commit comments