snoopsharp 0.1.1__tar.gz → 0.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {snoopsharp-0.1.1/src/snoopsharp.egg-info → snoopsharp-0.1.2}/PKG-INFO +27 -17
- {snoopsharp-0.1.1 → snoopsharp-0.1.2}/README.md +27 -17
- {snoopsharp-0.1.1 → snoopsharp-0.1.2}/pyproject.toml +1 -1
- {snoopsharp-0.1.1 → snoopsharp-0.1.2}/src/snoopsharp/__init__.py +1 -1
- {snoopsharp-0.1.1 → snoopsharp-0.1.2/src/snoopsharp.egg-info}/PKG-INFO +27 -17
- {snoopsharp-0.1.1 → snoopsharp-0.1.2}/LICENSE +0 -0
- {snoopsharp-0.1.1 → snoopsharp-0.1.2}/setup.cfg +0 -0
- {snoopsharp-0.1.1 → snoopsharp-0.1.2}/src/snoopsharp/client.py +0 -0
- {snoopsharp-0.1.1 → snoopsharp-0.1.2}/src/snoopsharp/errors.py +0 -0
- {snoopsharp-0.1.1 → snoopsharp-0.1.2}/src/snoopsharp/models.py +0 -0
- {snoopsharp-0.1.1 → snoopsharp-0.1.2}/src/snoopsharp/py.typed +0 -0
- {snoopsharp-0.1.1 → snoopsharp-0.1.2}/src/snoopsharp.egg-info/SOURCES.txt +0 -0
- {snoopsharp-0.1.1 → snoopsharp-0.1.2}/src/snoopsharp.egg-info/dependency_links.txt +0 -0
- {snoopsharp-0.1.1 → snoopsharp-0.1.2}/src/snoopsharp.egg-info/requires.txt +0 -0
- {snoopsharp-0.1.1 → snoopsharp-0.1.2}/src/snoopsharp.egg-info/top_level.txt +0 -0
- {snoopsharp-0.1.1 → snoopsharp-0.1.2}/tests/test_snoopsharp.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: snoopsharp
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: Python SDK for SEC EDGAR company filings and XBRL facts
|
|
5
5
|
Author: GT47THY
|
|
6
6
|
License: MIT
|
|
@@ -24,21 +24,29 @@ Dynamic: license-file
|
|
|
24
24
|
|
|
25
25
|
# SnoopSharp
|
|
26
26
|
|
|
27
|
+
A small Python SDK for getting SEC EDGAR data without the usual pain.
|
|
28
|
+
|
|
27
29
|
SEC EDGAR has a ton of useful public data, but getting it out is fiddlier than it should be. The endpoints are spread out, the JSON is bulky, XBRL facts take some digging, and the SEC expects you to identify yourself and not hammer their servers.
|
|
28
30
|
|
|
29
|
-
SnoopSharp wraps the common EDGAR
|
|
31
|
+
SnoopSharp wraps the common EDGAR workflows in a plain Python API, so you can go from "I want Apple's last 10-Ks" to working code without wrestling raw endpoints.
|
|
32
|
+
|
|
33
|
+
## Features
|
|
34
|
+
|
|
35
|
+
- **Company lookup** - by ticker or CIK.
|
|
36
|
+
- **Recent filings** - 10-K, 10-Q, 8-K, etc. from the SEC submissions endpoint.
|
|
37
|
+
- **XBRL facts** - pull numbers like revenue without manually walking a giant JSON tree.
|
|
38
|
+
- **Polite by default** - requires a real `User-Agent` and throttles requests.
|
|
30
39
|
|
|
31
|
-
##
|
|
40
|
+
## Install
|
|
32
41
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
- **Playing nice with SEC rules** — it asks for a real `User-Agent` and throttles requests by default.
|
|
42
|
+
```bash
|
|
43
|
+
pip install snoopsharp
|
|
44
|
+
```
|
|
37
45
|
|
|
38
|
-
|
|
46
|
+
For local development:
|
|
39
47
|
|
|
40
48
|
```bash
|
|
41
|
-
pip install -e .
|
|
49
|
+
pip install -e .[dev]
|
|
42
50
|
```
|
|
43
51
|
|
|
44
52
|
## Quick start
|
|
@@ -66,7 +74,9 @@ if latest:
|
|
|
66
74
|
print(latest.value, latest.unit, latest.end, latest.filed)
|
|
67
75
|
```
|
|
68
76
|
|
|
69
|
-
## Ticker or CIK
|
|
77
|
+
## Ticker or CIK
|
|
78
|
+
|
|
79
|
+
Either works:
|
|
70
80
|
|
|
71
81
|
```python
|
|
72
82
|
client.get_company("MSFT")
|
|
@@ -74,7 +84,7 @@ client.get_company(320193)
|
|
|
74
84
|
client.get_company("CIK0000320193")
|
|
75
85
|
```
|
|
76
86
|
|
|
77
|
-
##
|
|
87
|
+
## Raw SEC JSON
|
|
78
88
|
|
|
79
89
|
Sometimes you just want the source payload:
|
|
80
90
|
|
|
@@ -83,16 +93,12 @@ submissions = client.get_submissions("AAPL")
|
|
|
83
93
|
facts_json = client.get_company_facts("AAPL")
|
|
84
94
|
```
|
|
85
95
|
|
|
86
|
-
##
|
|
87
|
-
|
|
88
|
-
Small production-hardening pass: better package metadata/CI, lint/test cleanup, and a few runtime safety improvements.
|
|
89
|
-
|
|
90
|
-
## A few honest notes
|
|
96
|
+
## Notes
|
|
91
97
|
|
|
92
98
|
- **Use a real User-Agent.** The SEC may block generic or anonymous clients. Something like `AppName/Version (you@example.com)` is the right move.
|
|
93
99
|
- **Be polite.** The client throttles requests by default (about 10 requests/second). Leave that on.
|
|
94
100
|
- **Public data still needs context.** EDGAR is the source, but companies report things differently. If a number really matters, trace it back to the actual filing.
|
|
95
|
-
- This is an MVP. It covers the `submissions` and `companyfacts` endpoints. It doesn
|
|
101
|
+
- This is an MVP. It covers the `submissions` and `companyfacts` endpoints. It doesn't parse full XBRL documents or every corner of EDGAR.
|
|
96
102
|
|
|
97
103
|
## Development
|
|
98
104
|
|
|
@@ -100,3 +106,7 @@ Small production-hardening pass: better package metadata/CI, lint/test cleanup,
|
|
|
100
106
|
pip install -e .[dev]
|
|
101
107
|
pytest
|
|
102
108
|
```
|
|
109
|
+
|
|
110
|
+
## License
|
|
111
|
+
|
|
112
|
+
MIT
|
|
@@ -1,20 +1,28 @@
|
|
|
1
1
|
# SnoopSharp
|
|
2
2
|
|
|
3
|
+
A small Python SDK for getting SEC EDGAR data without the usual pain.
|
|
4
|
+
|
|
3
5
|
SEC EDGAR has a ton of useful public data, but getting it out is fiddlier than it should be. The endpoints are spread out, the JSON is bulky, XBRL facts take some digging, and the SEC expects you to identify yourself and not hammer their servers.
|
|
4
6
|
|
|
5
|
-
SnoopSharp wraps the common EDGAR
|
|
7
|
+
SnoopSharp wraps the common EDGAR workflows in a plain Python API, so you can go from "I want Apple's last 10-Ks" to working code without wrestling raw endpoints.
|
|
8
|
+
|
|
9
|
+
## Features
|
|
10
|
+
|
|
11
|
+
- **Company lookup** - by ticker or CIK.
|
|
12
|
+
- **Recent filings** - 10-K, 10-Q, 8-K, etc. from the SEC submissions endpoint.
|
|
13
|
+
- **XBRL facts** - pull numbers like revenue without manually walking a giant JSON tree.
|
|
14
|
+
- **Polite by default** - requires a real `User-Agent` and throttles requests.
|
|
6
15
|
|
|
7
|
-
##
|
|
16
|
+
## Install
|
|
8
17
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
- **Playing nice with SEC rules** — it asks for a real `User-Agent` and throttles requests by default.
|
|
18
|
+
```bash
|
|
19
|
+
pip install snoopsharp
|
|
20
|
+
```
|
|
13
21
|
|
|
14
|
-
|
|
22
|
+
For local development:
|
|
15
23
|
|
|
16
24
|
```bash
|
|
17
|
-
pip install -e .
|
|
25
|
+
pip install -e .[dev]
|
|
18
26
|
```
|
|
19
27
|
|
|
20
28
|
## Quick start
|
|
@@ -42,7 +50,9 @@ if latest:
|
|
|
42
50
|
print(latest.value, latest.unit, latest.end, latest.filed)
|
|
43
51
|
```
|
|
44
52
|
|
|
45
|
-
## Ticker or CIK
|
|
53
|
+
## Ticker or CIK
|
|
54
|
+
|
|
55
|
+
Either works:
|
|
46
56
|
|
|
47
57
|
```python
|
|
48
58
|
client.get_company("MSFT")
|
|
@@ -50,7 +60,7 @@ client.get_company(320193)
|
|
|
50
60
|
client.get_company("CIK0000320193")
|
|
51
61
|
```
|
|
52
62
|
|
|
53
|
-
##
|
|
63
|
+
## Raw SEC JSON
|
|
54
64
|
|
|
55
65
|
Sometimes you just want the source payload:
|
|
56
66
|
|
|
@@ -59,20 +69,20 @@ submissions = client.get_submissions("AAPL")
|
|
|
59
69
|
facts_json = client.get_company_facts("AAPL")
|
|
60
70
|
```
|
|
61
71
|
|
|
62
|
-
##
|
|
63
|
-
|
|
64
|
-
Small production-hardening pass: better package metadata/CI, lint/test cleanup, and a few runtime safety improvements.
|
|
65
|
-
|
|
66
|
-
## A few honest notes
|
|
72
|
+
## Notes
|
|
67
73
|
|
|
68
74
|
- **Use a real User-Agent.** The SEC may block generic or anonymous clients. Something like `AppName/Version (you@example.com)` is the right move.
|
|
69
75
|
- **Be polite.** The client throttles requests by default (about 10 requests/second). Leave that on.
|
|
70
76
|
- **Public data still needs context.** EDGAR is the source, but companies report things differently. If a number really matters, trace it back to the actual filing.
|
|
71
|
-
- This is an MVP. It covers the `submissions` and `companyfacts` endpoints. It doesn
|
|
77
|
+
- This is an MVP. It covers the `submissions` and `companyfacts` endpoints. It doesn't parse full XBRL documents or every corner of EDGAR.
|
|
72
78
|
|
|
73
79
|
## Development
|
|
74
80
|
|
|
75
81
|
```bash
|
|
76
82
|
pip install -e .[dev]
|
|
77
83
|
pytest
|
|
78
|
-
```
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## License
|
|
87
|
+
|
|
88
|
+
MIT
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: snoopsharp
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: Python SDK for SEC EDGAR company filings and XBRL facts
|
|
5
5
|
Author: GT47THY
|
|
6
6
|
License: MIT
|
|
@@ -24,21 +24,29 @@ Dynamic: license-file
|
|
|
24
24
|
|
|
25
25
|
# SnoopSharp
|
|
26
26
|
|
|
27
|
+
A small Python SDK for getting SEC EDGAR data without the usual pain.
|
|
28
|
+
|
|
27
29
|
SEC EDGAR has a ton of useful public data, but getting it out is fiddlier than it should be. The endpoints are spread out, the JSON is bulky, XBRL facts take some digging, and the SEC expects you to identify yourself and not hammer their servers.
|
|
28
30
|
|
|
29
|
-
SnoopSharp wraps the common EDGAR
|
|
31
|
+
SnoopSharp wraps the common EDGAR workflows in a plain Python API, so you can go from "I want Apple's last 10-Ks" to working code without wrestling raw endpoints.
|
|
32
|
+
|
|
33
|
+
## Features
|
|
34
|
+
|
|
35
|
+
- **Company lookup** - by ticker or CIK.
|
|
36
|
+
- **Recent filings** - 10-K, 10-Q, 8-K, etc. from the SEC submissions endpoint.
|
|
37
|
+
- **XBRL facts** - pull numbers like revenue without manually walking a giant JSON tree.
|
|
38
|
+
- **Polite by default** - requires a real `User-Agent` and throttles requests.
|
|
30
39
|
|
|
31
|
-
##
|
|
40
|
+
## Install
|
|
32
41
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
- **Playing nice with SEC rules** — it asks for a real `User-Agent` and throttles requests by default.
|
|
42
|
+
```bash
|
|
43
|
+
pip install snoopsharp
|
|
44
|
+
```
|
|
37
45
|
|
|
38
|
-
|
|
46
|
+
For local development:
|
|
39
47
|
|
|
40
48
|
```bash
|
|
41
|
-
pip install -e .
|
|
49
|
+
pip install -e .[dev]
|
|
42
50
|
```
|
|
43
51
|
|
|
44
52
|
## Quick start
|
|
@@ -66,7 +74,9 @@ if latest:
|
|
|
66
74
|
print(latest.value, latest.unit, latest.end, latest.filed)
|
|
67
75
|
```
|
|
68
76
|
|
|
69
|
-
## Ticker or CIK
|
|
77
|
+
## Ticker or CIK
|
|
78
|
+
|
|
79
|
+
Either works:
|
|
70
80
|
|
|
71
81
|
```python
|
|
72
82
|
client.get_company("MSFT")
|
|
@@ -74,7 +84,7 @@ client.get_company(320193)
|
|
|
74
84
|
client.get_company("CIK0000320193")
|
|
75
85
|
```
|
|
76
86
|
|
|
77
|
-
##
|
|
87
|
+
## Raw SEC JSON
|
|
78
88
|
|
|
79
89
|
Sometimes you just want the source payload:
|
|
80
90
|
|
|
@@ -83,16 +93,12 @@ submissions = client.get_submissions("AAPL")
|
|
|
83
93
|
facts_json = client.get_company_facts("AAPL")
|
|
84
94
|
```
|
|
85
95
|
|
|
86
|
-
##
|
|
87
|
-
|
|
88
|
-
Small production-hardening pass: better package metadata/CI, lint/test cleanup, and a few runtime safety improvements.
|
|
89
|
-
|
|
90
|
-
## A few honest notes
|
|
96
|
+
## Notes
|
|
91
97
|
|
|
92
98
|
- **Use a real User-Agent.** The SEC may block generic or anonymous clients. Something like `AppName/Version (you@example.com)` is the right move.
|
|
93
99
|
- **Be polite.** The client throttles requests by default (about 10 requests/second). Leave that on.
|
|
94
100
|
- **Public data still needs context.** EDGAR is the source, but companies report things differently. If a number really matters, trace it back to the actual filing.
|
|
95
|
-
- This is an MVP. It covers the `submissions` and `companyfacts` endpoints. It doesn
|
|
101
|
+
- This is an MVP. It covers the `submissions` and `companyfacts` endpoints. It doesn't parse full XBRL documents or every corner of EDGAR.
|
|
96
102
|
|
|
97
103
|
## Development
|
|
98
104
|
|
|
@@ -100,3 +106,7 @@ Small production-hardening pass: better package metadata/CI, lint/test cleanup,
|
|
|
100
106
|
pip install -e .[dev]
|
|
101
107
|
pytest
|
|
102
108
|
```
|
|
109
|
+
|
|
110
|
+
## License
|
|
111
|
+
|
|
112
|
+
MIT
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|