
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Latest Release | |
Getting Help | |
Activity | |
Community | |
License |
PyGeoWeaver is a Python package that provides a convenient and user-friendly interface to interact with GeoWeaver, a powerful geospatial data processing application written in Java. With PyGeoWeaver, Jupyter notebook and JupyterLab users can seamlessly integrate and utilize the capabilities of GeoWeaver within their Python workflows.
To install PyGeoWeaver, ensure you have Python 3.7 or later installed. You can then install PyGeoWeaver using pip:
pip install pygeoweaver
To start using PyGeoWeaver, you can launch the GeoWeaver graphical user interface by executing the following command in a Jupyter notebook cell:
import geoweaver
geoweaver.start()
Alternatively, you can start GeoWeaver directly from the terminal:
gw start
PyGeoWeaver provides several commands to interact with GeoWeaver. Below is a list of available options and their descriptions:
geoweaver.start()
or
gw start
- **Stopping GeoWeaver**: Stops the GeoWeaver interface.
```python
geoweaver.stop()
or
gw stop
Listing Existing Objects: Lists hosts, processes, and workflows.
geoweaver.list_hosts()
geoweaver.list_processes()
geoweaver.list_workflows()
Running a Workflow: Executes a specified workflow.
geoweaver.run_workflow("workflow_id", "host_id_list", "password_list", "environment_list")
Exporting a Workflow: Exports a workflow to a ZIP file.
geoweaver.export_workflow("workflow_id", "workflow_zip_save_path")
Importing a Workflow: Imports a workflow from a ZIP file.
geoweaver.import_workflow("<workflow_zip_file_path>")
Viewing Workflow and Process History: Retrieves the history of a workflow or process run.
geoweaver.get_workflow_history("<workflow_history_id>")
geoweaver.get_process_history("<process_history_id>")
Inspecting Process Source Code: Views the source code of a process.
geoweaver.detail_process("<process_id>")
Inspecting Workflow Configuration: Checks the configuration details of a workflow.
geoweaver.detail_workflow("<workflow_id>")
Inspecting Host Details: Retrieves the details of a host.
geoweaver.detail_host("<host_id>")
For detailed documentation and examples, please visit the PyGeoWeaver Documentation.
Contributions to PyGeoWeaver are welcome! If you encounter any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request on the GitHub repository.
PyGeoWeaver is licensed under the MIT License. See the LICENSE file for more details.
Thank you for choosing PyGeoWeaver! We hope this package enhances your geospatial data processing workflows. If you have any questions or need assistance, please refer to the documentation or reach out to us. Happy geospatial processing!
Usage: gw cleanh2db [OPTIONS]
Description: Clean and reduce the size of the H2 database used by Geoweaver.
This command follows these steps:
Options:
--h2-jar-path PATH
: Path to the H2 database JAR file. If not provided, will use h2-2.2.224.jar in the current directory.--temp-dir PATH
: Path to a temporary directory for the recovery process. If not provided, will create one.--db-path PATH
: Path to the H2 database files. If not provided, will use ~/h2/gw.--username TEXT
: Username for the H2 database. Defaults to "geoweaver".--password TEXT
: Password for the H2 database. If not provided, will prompt the user.--help
: Show this message and exit.gw create [OPTIONS] COMMAND [ARGS]...
process
: Create a process with given code or file path
--lang
: Programming language of the process--description
: Description of the process--name
: Name of the process--code
: Process code--file-path
: Path to file containing the code--owner
: Owner ID (default: "111111")--confidential
: Privacy flag (default: false)workflow
: Create a workflow with given configuration
--description
: Workflow description--edges
: Workflow edges configuration--name
: Workflow name--nodes
: Workflow nodes configuration--owner
: Owner ID (default: "111111")--confidential
: Privacy flag (default: false)# Create a process
gw create process --lang python --name "my_process" --description "My process" --code "print('Hello')"
# Create a process from file
gw create process --lang python --name "file_process" --description "Process from file" --file-path "script.py"
# Create a workflow
gw create workflow --name "my_workflow" --description "My workflow" --nodes "[...]" --edges "[...]"
gw detail [OPTIONS] COMMAND [ARGS]...
code
: Get the code of a process.host
: Display detailed information about a host.process
: Display detailed information about a process.workflow
: Display detailed information about a workflow.--help
: Show help message and exit.gw detail process <process_id>
gw detail workflow <workflow_id>
gw detail host <host_id>
gw detail code <process_id>
gw export workflow [OPTIONS] WORKFLOW_ID TARGET_FILE_PATH
workflow_id
: Geoweaver workflow IDtarget_file_path
: Target file path to save the workflow zip--mode INTEGER
: Export mode (default: 4)
--unzip
: Unzip the exported file--unzip-directory-name TEXT
: Specify the directory name when unzipping# Export workflow with all history
gw export workflow my_workflow_id ./my_workflow.zip
# Export workflow and unzip to specific directory
gw export workflow --unzip --unzip-directory-name my_workflow my_workflow_id ./my_workflow.zip
gw find [OPTIONS] COMMAND [ARGS]...
id
: Get a process by its ID
gw find id <process_id>
language
: Get processes by their programming language
gw find language <programming_language>
name
: Get processes by their name
gw find name <process_name>
gw help [command]
gw history [OPTIONS] COMMAND [ARGS]...
get_process
: Get list of history for a process using process id.get_workflow
: Get list of history for a workflow using workflow id.show
: Show history for a workflow or process.# Get history for a specific process
gw history get_process <process_id>
# Get history for a specific workflow
gw history get_workflow <workflow_id>
# Show detailed history information
gw history show <history_id>
Usage: gw import [OPTIONS] COMMAND [ARGS]...
Description: Import commands for Geoweaver.
Options:
--help
: Show this message and exit.Commands:
gw import workflow <workflow_zip_file_path>
workflow_zip_file_path
: Path to the Geoweaver workflow zip fileFor detailed usage examples and additional information, please refer to the PyGeoWeaver Documentation.
FAQs
This is a wrapper package of the Geoweaver app.
We found that pygeoweaver demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.