Skip to content

Commit 1dcfbef

Browse files
committed
Re-export all public models from __init__.py
Consumers can now import directly from the package: from l9format import L9Event, L9Aggregation Also defines __all__ to make the public API explicit. Closes #21
1 parent 7b800c9 commit 1dcfbef

1 file changed

Lines changed: 66 additions & 0 deletions

File tree

l9format/__init__.py

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,67 @@
11
__version__ = "1.4.0"
2+
3+
from l9format.l9format import (
4+
Certificate,
5+
DatasetSummary,
6+
GeoLocation,
7+
GeoPoint,
8+
L9Aggregation,
9+
L9AMQPEvent,
10+
L9DNSEvent,
11+
L9Event,
12+
L9FTPEvent,
13+
L9HttpEvent,
14+
L9LDAPEvent,
15+
L9LeakEvent,
16+
L9MemcachedEvent,
17+
L9MongoDBEvent,
18+
L9MySQLEvent,
19+
L9PostgreSQLEvent,
20+
L9RDPEvent,
21+
L9RedisEvent,
22+
L9RTSPEvent,
23+
L9ServiceEvent,
24+
L9SIPEvent,
25+
L9SMTPEvent,
26+
L9SSHEvent,
27+
L9SSLEvent,
28+
L9TelnetEvent,
29+
L9VNCEvent,
30+
Network,
31+
ServiceCredentials,
32+
Software,
33+
SoftwareModule,
34+
)
35+
36+
__all__ = [
37+
"Certificate",
38+
"DatasetSummary",
39+
"GeoLocation",
40+
"GeoPoint",
41+
"L9Aggregation",
42+
"L9AMQPEvent",
43+
"L9DNSEvent",
44+
"L9Event",
45+
"L9FTPEvent",
46+
"L9HttpEvent",
47+
"L9LDAPEvent",
48+
"L9LeakEvent",
49+
"L9MemcachedEvent",
50+
"L9MongoDBEvent",
51+
"L9MySQLEvent",
52+
"L9PostgreSQLEvent",
53+
"L9RDPEvent",
54+
"L9RedisEvent",
55+
"L9RTSPEvent",
56+
"L9ServiceEvent",
57+
"L9SIPEvent",
58+
"L9SMTPEvent",
59+
"L9SSHEvent",
60+
"L9SSLEvent",
61+
"L9TelnetEvent",
62+
"L9VNCEvent",
63+
"Network",
64+
"ServiceCredentials",
65+
"Software",
66+
"SoftwareModule",
67+
]

0 commit comments

Comments
 (0)