Skip to content

Commit 7fbc7e4

Browse files
author
sajidurrahman
committed
feat: removed deprecated code. Made it python 3.10 compatible
1 parent 24b21e8 commit 7fbc7e4

9 files changed

Lines changed: 242 additions & 419 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ celerybeat-schedule
8080
# virtualenv
8181
venv/
8282
ENV/
83+
.venv/
8384

8485
# Spyder project settings
8586
.spyderproject
87+
88+
.idea/

MANIFEST.in

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

README.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# python-clamd-fork
2+
3+
A Python client for ClamAV daemon (clamd).
4+
5+
## About
6+
7+
This is a fork of the original [python-clamd](https://github.com/graingert/python-clamd) library.
8+
9+
### Why this fork?
10+
11+
- **Modernization** — Updated to use modern Python packaging and practices
12+
- **Cleanup** — Removed deprecated code and legacy Python 2 compatibility layers
13+
- **Maintenance** — Cleaned up outdated dependencies and build tooling
14+
15+
## Requirements
16+
17+
- Python 3.10+
18+
- ClamAV daemon running
19+
20+
## Installation
21+
22+
```bash
23+
pip install python-clamd-fork
24+
```
25+
26+
## Usage
27+
28+
```python
29+
import clamd
30+
31+
# Connect via Unix socket
32+
cd = clamd.ClamdUnixSocket()
33+
34+
# Or connect via network
35+
cd = clamd.ClamdNetworkSocket(host='127.0.0.1', port=3310)
36+
37+
# Ping the daemon
38+
cd.ping()
39+
40+
# Scan a file
41+
cd.scan('/path/to/file')
42+
43+
# Get version info
44+
cd.version()
45+
```
46+
47+
## License
48+
49+
LGPL - See the original [python-clamd](https://github.com/graingert/python-clamd) for details.
50+

0 commit comments

Comments
 (0)