Skip to content

Commit 85c55b6

Browse files
authored
rename to usb-remote (#11)
* rename to usb-remote * linting * fix tests * better name for config file * remove remaining awusb references
1 parent 8543621 commit 85c55b6

30 files changed

+376
-499
lines changed

.copier-answers.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ _src_path: https://github.com/diamondlightsource/python-copier-template
44
author_email: giles.knap@diamond.ac.uk
55
author_name: Giles Knap
66
description: a container that mounts remote devices locally using anywhereusb
7-
distribution_name: awusb
7+
distribution_name: usb-remote
88
docker: true
99
docker_debug: false
1010
docs_type: README
1111
git_platform: github.com
1212
github_org: epics-containers
13-
package_name: awusb
13+
package_name: usb-remote
1414
pypi: true
15-
repo_name: awusb
15+
repo_name: usb-remote
1616
strict_typing: false
1717
type_checker: pyright

.github/CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Contribute to the project
22

33
Contributions and issues are most welcome! All issues and pull requests are
4-
handled through [GitHub](https://github.com/epics-containers/awusb/issues). Also, please check for any existing issues before
4+
handled through [GitHub](https://github.com/epics-containers/usb-remote/issues). Also, please check for any existing issues before
55
filing a new one. If you have a great idea but it involves big changes, please
66
file a ticket before making a pull request! We want to make sure you don't spend
77
your time coding something that might not fit the scope of the project.
88

99
## Issue or Discussion?
1010

11-
Github also offers [discussions](https://github.com/epics-containers/awusb/discussions) as a place to ask questions and share ideas. If
11+
Github also offers [discussions](https://github.com/epics-containers/usb-remote/discussions) as a place to ask questions and share ideas. If
1212
your issue is open ended and it is not obvious when it can be "closed", please
1313
raise it as a discussion instead.
1414

.vscode/launch.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@
55
"version": "0.2.0",
66
"configurations": [
77
{
8-
"name": "awusb attach",
8+
"name": "usb-remote attach",
99
"type": "debugpy",
1010
"request": "launch",
11-
"module": "awusb.__main__",
11+
"module": "usb-remote.__main__",
1212
"args": [
1313
"attach"
1414
],
1515
},
1616
{
17-
"name": "awusb server",
17+
"name": "usb-remote server",
1818
"type": "debugpy",
1919
"request": "launch",
20-
"module": "awusb.__main__",
20+
"module": "usb-remote.__main__",
2121
"args": [
2222
"server"
2323
],

Charts/deployment.yaml

Lines changed: 0 additions & 52 deletions
This file was deleted.

Charts/podman.md

Lines changed: 0 additions & 33 deletions
This file was deleted.

Charts/testing.md

Lines changed: 0 additions & 61 deletions
This file was deleted.

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@ COPY --from=build /app/.venv /app/.venv
4040
ENV PATH=/app/.venv/bin:$PATH
4141

4242
# change this entrypoint if it is not the same as the repo
43-
ENTRYPOINT ["awusb"]
43+
ENTRYPOINT ["usb-remote"]
4444
CMD ["--version"]

README.md

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
[![CI](https://github.com/epics-containers/awusb/actions/workflows/ci.yml/badge.svg)](https://github.com/epics-containers/awusb/actions/workflows/ci.yml)
2-
[![Coverage](https://codecov.io/gh/epics-containers/awusb/branch/main/graph/badge.svg)](https://codecov.io/gh/epics-containers/awusb)
3-
[![PyPI](https://img.shields.io/pypi/v/awusb.svg)](https://pypi.org/project/awusb)
1+
[![CI](https://github.com/epics-containers/usb-remote/actions/workflows/ci.yml/badge.svg)](https://github.com/epics-containers/usb-remote/actions/workflows/ci.yml)
2+
[![Coverage](https://codecov.io/gh/epics-containers/usb-remote/branch/main/graph/badge.svg)](https://codecov.io/gh/epics-containers/usb-remote)
3+
[![PyPI](https://img.shields.io/pypi/v/usb-remote.svg)](https://pypi.org/project/usb-remote)
44
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)
55

6-
# awusb
6+
# usb-remote
77

88
Client-server software to share USB devices over the network.
99

10-
Source | <https://github.com/epics-containers/awusb>
10+
Source | <https://github.com/epics-containers/usb-remote>
1111
:---: | :---:
12-
PyPI | `pip install awusb`
13-
Docker | `docker run ghcr.io/epics-containers/awusb:latest`
14-
Releases | <https://github.com/epics-containers/awusb/releases>
12+
PyPI | `pip install usb-remote`
13+
Docker | `docker run ghcr.io/epics-containers/usb-remote:latest`
14+
Releases | <https://github.com/epics-containers/usb-remote/releases>
1515

1616
## Documentation
1717

@@ -21,11 +21,11 @@ Releases | <https://github.com/epics-containers/awusb/releases>
2121

2222
## Multi-Server Configuration
2323

24-
You can configure `awusb` to scan multiple USB device servers automatically. The client discovers configuration files in the following priority order:
24+
You can configure `usb-remote` to scan multiple USB device servers automatically. The client discovers configuration files in the following priority order:
2525

26-
1. **Environment variable**: `AWUSB_CONFIG=/path/to/config.yaml`
27-
1. **Project-local config**: `.awusb.config` in current directory
28-
1. **User config**: `~/.config/awusb/awusb.config` (default)
26+
1. **Environment variable**: `USB_REMOTE_CONFIG=/path/to/config.yaml`
27+
1. **Project-local config**: `.usb-remote.config` in current directory
28+
1. **User config**: `~/.config/usb-remote/usb-remote.config` (default)
2929

3030
Create a configuration file with the following format:
3131

@@ -40,22 +40,22 @@ servers:
4040
timeout: 5.0
4141
```
4242
43-
See `awusb.config.example` for a sample configuration file.
43+
See `usb-remote.config.example` for a sample configuration file.
4444

4545
### Config File Discovery Examples
4646

4747
```bash
48-
# Use default config from ~/.config/awusb/awusb.config
49-
awusb list
48+
# Use default config from ~/.config/usb-remote/usb-remote.config
49+
usb-remote list
5050
5151
# Use project-specific config from current directory
5252
cd /path/to/project
53-
echo "servers: [myserver]" > .awusb.config
54-
awusb list
53+
echo "servers: [myserver]" > .usb-remote.config
54+
usb-remote list
5555
5656
# Use environment variable (useful in CI/CD)
57-
export AWUSB_CONFIG=/etc/awusb/production.config
58-
awusb list
57+
export USB_REMOTE_CONFIG=/etc/usb-remote/production.config
58+
usb-remote list
5959
```
6060

6161
### Connection Timeout
@@ -81,42 +81,42 @@ When a server times out, it's logged as a warning and skipped, allowing other se
8181

8282
```bash
8383
# List devices on all configured servers
84-
awusb list
84+
usb-remote list
8585
8686
# List devices on a specific server
87-
awusb list --host raspberrypi
87+
usb-remote list --host raspberrypi
8888
8989
# Attach a device (scans all servers, fails if multiple matches)
90-
awusb attach --desc "Camera"
90+
usb-remote attach --desc "Camera"
9191
9292
# Attach first matching device across servers
93-
awusb attach --desc "Camera" --first
93+
usb-remote attach --desc "Camera" --first
9494
9595
# Attach a device from a specific server
96-
awusb attach --desc "Camera" --host 192.168.1.100
96+
usb-remote attach --desc "Camera" --host 192.168.1.100
9797
9898
# Detach with first match (if same device attached from multiple servers)
99-
awusb detach --desc "Camera" --first
99+
usb-remote detach --desc "Camera" --first
100100
```
101101

102102
## Installing as a Service
103103

104-
You can install the awusb server as a systemd service to run automatically at boot.
104+
You can install the usb-remote server as a systemd service to run automatically at boot.
105105

106106
### System Service (Recommended)
107107

108108
Install as a system service (runs at boot, before login):
109109

110110
```bash
111111
# Install as system service (requires sudo)
112-
sudo awusb install-service --system
112+
sudo usb-remote install-service --system
113113
114114
# Enable and start
115-
sudo systemctl enable awusb.service
116-
sudo systemctl start awusb.service
115+
sudo systemctl enable usb-remote.service
116+
sudo systemctl start usb-remote.service
117117
118118
# Check status
119-
sudo systemctl status awusb.service
119+
sudo systemctl status usb-remote.service
120120
```
121121

122122
### User Service (Not Recommended)
@@ -125,28 +125,28 @@ Install as a user service (runs when you log in) useful for testing if you don't
125125

126126
```bash
127127
# Install the service
128-
awusb install-service
128+
usb-remote install-service
129129
130130
# Enable it to start on login
131-
systemctl --user enable awusb.service
131+
systemctl --user enable usb-remote.service
132132
133133
# Start the service now
134-
systemctl --user start awusb.service
134+
systemctl --user start usb-remote.service
135135
136136
# Check status
137-
systemctl --user status awusb.service
137+
systemctl --user status usb-remote.service
138138
139139
# View logs
140-
journalctl --user -u awusb.service -f
140+
journalctl --user -u usb-remote.service -f
141141
```
142142

143143

144144
### Uninstalling
145145

146146
```bash
147147
# Uninstall user service
148-
awusb uninstall-service
148+
usb-remote uninstall-service
149149
150150
# Uninstall system service (requires sudo)
151-
sudo awusb uninstall-service --system
151+
sudo usb-remote uninstall-service --system
152152
```

0 commit comments

Comments
 (0)