Skip to content

Commit

Permalink
Merge branch 'master' of github.com:lk-geimfari/mimesis
Browse files Browse the repository at this point in the history
  • Loading branch information
lk-geimfari committed May 24, 2024
2 parents fcf60c9 + 92f2d14 commit 3e6f828
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
23 changes: 13 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
<a href="https://pypi.org/project/mimesis/" target="_blank">
<img src="https://img.shields.io/pypi/v/mimesis?color=bright-green" alt="Package version">
</a>
<a href="https://pypi.org/project/mimesis/" target="_blank">
<img src="https://img.shields.io/pypi/dm/mimesis" alt="Package version">
</a>
<a href="https://pypi.org/project/mimesis/" target="_blank">
<img src="https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12%20%7C%20pypy-brightgreen" alt="Supported Python versions">
</a>
Expand All @@ -27,7 +30,7 @@

---

Mimesis ([/mɪˈmiːsɪs](https://mimesis.name/en/master/about.html#what-does-name-mean)) is a robust data generator for
Mimesis ([/mɪˈmiːsɪs](https://mimesis.name/en/latest/about.html#what-does-name-mean)) is a robust data generator for
Python that can produce a wide range of fake data in various languages.

The key features are:
Expand Down Expand Up @@ -58,15 +61,15 @@ You can find the complete documentation on the [Read the Docs](https://mimesis.n
It is divided into several sections:

- [About Mimesis](https://mimesis.name/en/latest/about.html)
- [Quickstart](https://mimesis.name/en/master/quickstart.html)
- [Locales](https://mimesis.name/en/master/locales.html)
- [Data Providers](https://mimesis.name/en/master/getting_started.html#data-providers)
- [Structured Data Generation](https://mimesis.name/en/master/schema.html)
- [Random and Seed](https://mimesis.name/en/master/random_and_seed.html)
- [Integration with Pytest](https://mimesis.name/en/master/pytest_plugin.html)
- [Integration with factory_boy](https://mimesis.name/en/master/factory_plugin.html)
- [API Reference](https://mimesis.name/en/master/api.html)
- [Changelog](https://mimesis.name/en/master/index.html#changelog)
- [Quickstart](https://mimesis.name/en/latest/quickstart.html)
- [Locales](https://mimesis.name/en/latest/locales.html)
- [Data Providers](https://mimesis.name/en/latest/providers.html)
- [Structured Data Generation](https://mimesis.name/en/latest/schema.html)
- [Random and Seed](https://mimesis.name/en/latest/random_and_seed.html)
- [Integration with Pytest](https://mimesis.name/en/latest/pytest_plugin.html)
- [Integration with factory_boy](https://mimesis.name/en/latest/factory_plugin.html)
- [API Reference](https://mimesis.name/en/latest/api.html)
- [Changelog](https://mimesis.name/en/latest/index.html#changelog)

You can improve it by sending pull requests to this repository.

Expand Down
3 changes: 3 additions & 0 deletions mimesis/datasets/int/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@
"win64": {
"home": "C:\\Users\\",
},
"freebsd": {
"home": "/home/",
},
}
4 changes: 3 additions & 1 deletion mimesis/providers/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ def __init__(
) -> None:
"""Initialize attributes.
Supported platforms: 'linux', 'darwin', 'win32', 'win64'.
Supported platforms: 'linux', 'darwin', 'win32', 'win64', 'freebsd'.
:param platform: Required platform type.
"""
super().__init__(*args, **kwargs)
if platform.startswith("freebsd"):
platform = "freebsd"
self.platform = platform
self._pathlib_home = PureWindowsPath() if "win" in platform else PurePosixPath()
self._pathlib_home /= PLATFORMS[platform]["home"]
Expand Down

0 comments on commit 3e6f828

Please sign in to comment.