Name | filedialpy JSON |
Version |
1.3.0
JSON |
| download |
home_page | None |
Summary | Package for opening native file dialogs on linux, macOS and windows. |
upload_time | 2024-11-25 08:04:33 |
maintainer | None |
docs_url | None |
author | Etienne Sollier |
requires_python | >=3.3 |
license | None |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# filedialpy
Python package for opening native file dialogs on linux, macOS and windows. It uses either zenity or kdialog on linux, pywin32 on windows and applescript on macOS.
## Installation
```
pip install filedialpy
```
## Usage
```
import filedialpy
f=filedialpy.openFile() # Open a single file (return a string)
f=filedialpy.openFiles() # Open multiple files (return a list of strings)
f=filedialpy.openDir() # Open a directory (return a string)
f=filedialpy.saveFile() # Save to a new file (return a string)
# Using additional options
f=filedialpy.saveFile(initial_dir="/home/user/Documents",initial_file="config.json",title="Save config file", filter=["*.json","*"])
```
## Options
- **initial_dir**: Initial directory where to start the search (current working directory if not specified).
- **initial_file**: Initial filename.
- **title**: Title for the dialog window.
- **filter**: string "*.json *.txt" (different accepted extensions can be separated by a space), or a list of such strings in order to provide several possible filters.
## Acknowledgements
The implementation of filedialpy was inspired by [crossfiledialog](https://github.com/maikelwever/crossfiledialog).
Raw data
{
"_id": null,
"home_page": null,
"name": "filedialpy",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.3",
"maintainer_email": null,
"keywords": null,
"author": "Etienne Sollier",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/32/9f/a93eadbe3a2e9b83fff9e61054f9717d32a054361fc9bcddf4f41155b3f9/filedialpy-1.3.0.tar.gz",
"platform": null,
"description": "# filedialpy\n\nPython package for opening native file dialogs on linux, macOS and windows. It uses either zenity or kdialog on linux, pywin32 on windows and applescript on macOS.\n\n## Installation\n\n```\npip install filedialpy\n```\n\n## Usage\n\n```\nimport filedialpy\n\nf=filedialpy.openFile() # Open a single file (return a string)\nf=filedialpy.openFiles() # Open multiple files (return a list of strings)\nf=filedialpy.openDir() # Open a directory (return a string)\nf=filedialpy.saveFile() # Save to a new file (return a string)\n\n# Using additional options\nf=filedialpy.saveFile(initial_dir=\"/home/user/Documents\",initial_file=\"config.json\",title=\"Save config file\", filter=[\"*.json\",\"*\"])\n```\n\n## Options\n\n- **initial_dir**: Initial directory where to start the search (current working directory if not specified).\n- **initial_file**: Initial filename.\n- **title**: Title for the dialog window.\n- **filter**: string \"*.json *.txt\" (different accepted extensions can be separated by a space), or a list of such strings in order to provide several possible filters.\n\n\n## Acknowledgements\nThe implementation of filedialpy was inspired by [crossfiledialog](https://github.com/maikelwever/crossfiledialog).\n",
"bugtrack_url": null,
"license": null,
"summary": "Package for opening native file dialogs on linux, macOS and windows.",
"version": "1.3.0",
"project_urls": {
"Homepage": "https://github.com/e-sollier/filedialpy"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "8a862ccbfc38f12de27e2d3e56b438b88c3f9b964288ebf502725d594364a4b6",
"md5": "ef6974c1618f0e53562675dc7e2a25f3",
"sha256": "e14b7eac422d5e238a02b16c7c81d5cf60ff99ca3dc00a10349604b4482a8b7f"
},
"downloads": -1,
"filename": "filedialpy-1.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ef6974c1618f0e53562675dc7e2a25f3",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.3",
"size": 18026,
"upload_time": "2024-11-25T08:04:32",
"upload_time_iso_8601": "2024-11-25T08:04:32.599951Z",
"url": "https://files.pythonhosted.org/packages/8a/86/2ccbfc38f12de27e2d3e56b438b88c3f9b964288ebf502725d594364a4b6/filedialpy-1.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "329fa93eadbe3a2e9b83fff9e61054f9717d32a054361fc9bcddf4f41155b3f9",
"md5": "c85d5ea6c1b2d82e95722d7701d5e012",
"sha256": "8cca954349f300a3fb41359f0c2d2c87bc95bc0b3311a071b34e1c869a4e90b5"
},
"downloads": -1,
"filename": "filedialpy-1.3.0.tar.gz",
"has_sig": false,
"md5_digest": "c85d5ea6c1b2d82e95722d7701d5e012",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.3",
"size": 16368,
"upload_time": "2024-11-25T08:04:33",
"upload_time_iso_8601": "2024-11-25T08:04:33.808797Z",
"url": "https://files.pythonhosted.org/packages/32/9f/a93eadbe3a2e9b83fff9e61054f9717d32a054361fc9bcddf4f41155b3f9/filedialpy-1.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-25 08:04:33",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "e-sollier",
"github_project": "filedialpy",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "filedialpy"
}