Skip to content

Commit

Permalink
release 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
clitic committed Oct 5, 2023
1 parent a374ba5 commit 51e6c77
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ members = [
"kdam/examples/miscellaneous/file_download",
"kdam_derive",
]
resolver = "2"
2 changes: 2 additions & 0 deletions kdam/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.5.0] - 2023-10-05

## Added

- New `notebook` feature.
Expand Down
5 changes: 3 additions & 2 deletions kdam/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@ colorgrad = { version = "0.6", optional = true }
formatx = { version = "0.2.1", optional = true }
kdam_derive = { version = "0.1.0", path = "../kdam_derive", optional = true }
pyo3 = { version = "0.19", optional = true }
rayon = { version = "1.7", optional = true }
terminal_size = "0.2"
rayon = { version = "1.8", optional = true }
terminal_size = "0.3"
unicode-segmentation = { version = "1", optional = true }
unicode-width = { version = "0.1", optional = true }

[target.'cfg(windows)'.dependencies]
windows-sys = { version = "0.48.0", features = ["Win32_Foundation", "Win32_System_Console"] }

[features]
default = ["rayon"]
derive = ["dep:kdam_derive"]
gradient = ["dep:colorgrad"]
notebook = ["dep:pyo3"]
Expand Down
4 changes: 2 additions & 2 deletions kdam/DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ A console progress bar library for Rust. (inspired by [tqdm](https://github.com/
The following are a list of [Cargo features](https://doc.rust-lang.org/stable/cargo/reference/manifest.html#the-features-section) that can be enabled or disabled:

- **derive**: Adds a derive macro for deriving [BarExt](crate::BarExt) trait.
- **notebook**: Enables support for jupyter notebooks.
- **notebook**: Enables support for jupyter notebooks. It can be useful when you are building [pyo3](https://crates.io/crates/pyo3) python extension modules. Also, make sure that you have [ipython](https://pypi.org/project/ipython) and [ipywidgets](https://pypi.org/project/ipywidgets) python libraries installed on your system.
- **gradient**: Enables gradient colours support for progress bars and printing text.
- **rayon**: Adds supports for [rayon's](https://crates.io/crates/rayon) iterators.
- **rayon**: Adds support for [rayon's](https://crates.io/crates/rayon) parallel iterators.
- **rich**: Enables [rich](https://rich.readthedocs.io/en/latest/progress.html) style progress bar.
- **spinner**: Enables support for using spinners.
- **template**: Enables templating capabilities for [Bar](crate::Bar).
Expand Down
4 changes: 2 additions & 2 deletions kdam/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</a>
</p>

kdam is a console progress bar library for rust. It is port of [tqdm](https://github.com/tqdm/tqdm) library which is written in python. kdam supports almost all features of tqdm except few. Some features of tqdm can't be ported directly. So they are implemented in different way like, [RowManager](https://docs.rs/kdam/latest/kdam/struct.RowManager.html) which manages multiple progress bars but in tqdm progress bars are automatically managed using `nrows`. In addition to tqdm existing features kdam also provides extra features such as spinners, charset with fill, gradient colours etc. Since, kdam is written in rust its upto 4 times faster than tqdm.
kdam is a console progress bar library for rust. It is port of [tqdm](https://github.com/tqdm/tqdm) library which is written in python. kdam supports almost all features of tqdm except a few. It also supports [jupyter notebook](https://github.com/clitic/kdam/tree/main/kdam/examples/notebook) same as tqdm does. Some features of tqdm can't be ported directly. So they are implemented in different way like, [RowManager](https://docs.rs/kdam/latest/kdam/struct.RowManager.html) which manages multiple progress bars but in tqdm progress bars are automatically managed using `nrows`. In addition to tqdm existing features kdam also provides extra features such as spinners, charset with fill, gradient colours etc. Since, kdam is written in rust its upto 4 times faster than tqdm.

Instantly make your loops show a smart progress meter. Just wrap any iterator with tqdm!(iterator) macro and you're done!

Expand Down Expand Up @@ -65,7 +65,7 @@ Add this to your Cargo.toml file.

```toml
[dependencies]
kdam = "0.4.1"
kdam = "0.5.0"
```

Or add from command line.
Expand Down
2 changes: 1 addition & 1 deletion kdam/src/std/notebook.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::sync::atomic::{AtomicBool, Ordering};

static RUNNING: AtomicBool = AtomicBool::new(false);

/// Set whether `kdam` is running inside jupyter notebook or not.
/// Set whether `kdam` is running inside a jupyter notebook or not.
pub fn set_notebook(running: bool) {
RUNNING.store(running, Ordering::SeqCst);
}
Expand Down

0 comments on commit 51e6c77

Please sign in to comment.