secfeed 0.1.2__tar.gz → 0.1.3__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.
- {secfeed-0.1.2 → secfeed-0.1.3}/PKG-INFO +11 -1
- {secfeed-0.1.2 → secfeed-0.1.3}/README.md +10 -0
- {secfeed-0.1.2 → secfeed-0.1.3}/pyproject.toml +1 -1
- {secfeed-0.1.2 → secfeed-0.1.3}/secfeed/__init__.py +56 -0
- {secfeed-0.1.2 → secfeed-0.1.3}/secfeed.egg-info/PKG-INFO +11 -1
- {secfeed-0.1.2 → secfeed-0.1.3}/secfeed.egg-info/SOURCES.txt +0 -0
- {secfeed-0.1.2 → secfeed-0.1.3}/secfeed.egg-info/dependency_links.txt +0 -0
- {secfeed-0.1.2 → secfeed-0.1.3}/secfeed.egg-info/top_level.txt +0 -0
- {secfeed-0.1.2 → secfeed-0.1.3}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: secfeed
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.3
|
|
4
4
|
Summary: Python SDK for the SecFeed SEC EDGAR API
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Homepage, https://secfeedapi.com
|
|
@@ -29,6 +29,16 @@ for filing in sf.stream(form_types=["8-K"]):
|
|
|
29
29
|
print(filing["companyName"], filing["formType"])
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
+
Federal contracts use the same key: SAM.gov opportunities and entity registrations, USAspending awards, awards by ticker,
|
|
33
|
+
and the recompete radar (contracts ending in the next 24 months; Developer plans and up).
|
|
34
|
+
|
|
35
|
+
```python
|
|
36
|
+
sf.sam_opportunities(naics="5415", setAside="SBA")
|
|
37
|
+
sf.sam_entity(cage="02GJ5")
|
|
38
|
+
sf.company_federal_awards("LMT")
|
|
39
|
+
sf.recompetes(naics="5415", setAside="SBA", hasNotice="true")
|
|
40
|
+
```
|
|
41
|
+
|
|
32
42
|
Every endpoint in the [API docs](https://secfeedapi.com/docs/) has a method. Errors raise `SecFeedError`.
|
|
33
43
|
|
|
34
44
|
SecFeed is an independent service and is not affiliated with or endorsed by the U.S. Securities and Exchange Commission. Filing data comes from SEC EDGAR, which is public.
|
|
@@ -18,6 +18,16 @@ for filing in sf.stream(form_types=["8-K"]):
|
|
|
18
18
|
print(filing["companyName"], filing["formType"])
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
+
Federal contracts use the same key: SAM.gov opportunities and entity registrations, USAspending awards, awards by ticker,
|
|
22
|
+
and the recompete radar (contracts ending in the next 24 months; Developer plans and up).
|
|
23
|
+
|
|
24
|
+
```python
|
|
25
|
+
sf.sam_opportunities(naics="5415", setAside="SBA")
|
|
26
|
+
sf.sam_entity(cage="02GJ5")
|
|
27
|
+
sf.company_federal_awards("LMT")
|
|
28
|
+
sf.recompetes(naics="5415", setAside="SBA", hasNotice="true")
|
|
29
|
+
```
|
|
30
|
+
|
|
21
31
|
Every endpoint in the [API docs](https://secfeedapi.com/docs/) has a method. Errors raise `SecFeedError`.
|
|
22
32
|
|
|
23
33
|
SecFeed is an independent service and is not affiliated with or endorsed by the U.S. Securities and Exchange Commission. Filing data comes from SEC EDGAR, which is public.
|
|
@@ -142,6 +142,62 @@ class Client:
|
|
|
142
142
|
def delete_webhook(self, id):
|
|
143
143
|
return self._req("POST", "/v1/webhooks/delete", body={"id": id})
|
|
144
144
|
|
|
145
|
+
# federal contracts and spending (SAM.gov, USAspending)
|
|
146
|
+
def sam_opportunities(self, **filters):
|
|
147
|
+
return self._req("GET", "/v1/sam/opportunities", filters)
|
|
148
|
+
|
|
149
|
+
def sam_opportunity(self, notice_id):
|
|
150
|
+
return self._req("GET", "/v1/sam/opportunity", {"noticeId": notice_id})
|
|
151
|
+
|
|
152
|
+
def add_sam_alert(self, url, **filters):
|
|
153
|
+
return self._req("POST", "/v1/sam/alerts", body={"url": url, "filters": filters})
|
|
154
|
+
|
|
155
|
+
def list_sam_alerts(self):
|
|
156
|
+
return self._req("GET", "/v1/sam/alerts")
|
|
157
|
+
|
|
158
|
+
def delete_sam_alert(self, id):
|
|
159
|
+
return self._req("POST", "/v1/sam/alerts/delete", body={"id": id})
|
|
160
|
+
|
|
161
|
+
def sam_entity(self, uei=None, cage=None):
|
|
162
|
+
return self._req("GET", "/v1/sam/entity", {"uei": uei} if uei else {"cage": cage})
|
|
163
|
+
|
|
164
|
+
def sam_entities(self, **filters):
|
|
165
|
+
return self._req("GET", "/v1/sam/entities", filters)
|
|
166
|
+
|
|
167
|
+
# recompete radar (Developer plans and up; trial and free keys get a 402)
|
|
168
|
+
def recompetes(self, **filters):
|
|
169
|
+
return self._req("GET", "/v1/sam/recompetes", filters)
|
|
170
|
+
|
|
171
|
+
def recompete(self, award_key):
|
|
172
|
+
return self._req("GET", "/v1/sam/recompete", {"awardKey": award_key})
|
|
173
|
+
|
|
174
|
+
def add_recompete_alert(self, url, **filters):
|
|
175
|
+
return self._req("POST", "/v1/sam/recompete-alerts", body={"url": url, "filters": filters})
|
|
176
|
+
|
|
177
|
+
def list_recompete_alerts(self):
|
|
178
|
+
return self._req("GET", "/v1/sam/recompete-alerts")
|
|
179
|
+
|
|
180
|
+
def delete_recompete_alert(self, id):
|
|
181
|
+
return self._req("POST", "/v1/sam/recompete-alerts/delete", body={"id": id})
|
|
182
|
+
|
|
183
|
+
def federal_awards(self, **filters):
|
|
184
|
+
return self._req("GET", "/v1/usaspending/awards", filters)
|
|
185
|
+
|
|
186
|
+
def federal_award(self, id):
|
|
187
|
+
return self._req("GET", "/v1/usaspending/award", {"id": id})
|
|
188
|
+
|
|
189
|
+
def federal_recipients(self, q, size=10):
|
|
190
|
+
return self._req("GET", "/v1/usaspending/recipients", {"q": q, "size": size})
|
|
191
|
+
|
|
192
|
+
def federal_recipient(self, id):
|
|
193
|
+
return self._req("GET", "/v1/usaspending/recipient", {"id": id})
|
|
194
|
+
|
|
195
|
+
def federal_spending(self, by, **filters):
|
|
196
|
+
return self._req("GET", "/v1/usaspending/spending", {"by": by, **filters})
|
|
197
|
+
|
|
198
|
+
def company_federal_awards(self, ticker, **filters):
|
|
199
|
+
return self._req("GET", "/v1/companies/federal-awards", {"ticker": ticker, **filters})
|
|
200
|
+
|
|
145
201
|
|
|
146
202
|
DATASETS = {
|
|
147
203
|
"director_compensation": "director-compensation", "executive_compensation_governance": "executive-compensation-governance",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: secfeed
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.3
|
|
4
4
|
Summary: Python SDK for the SecFeed SEC EDGAR API
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Homepage, https://secfeedapi.com
|
|
@@ -29,6 +29,16 @@ for filing in sf.stream(form_types=["8-K"]):
|
|
|
29
29
|
print(filing["companyName"], filing["formType"])
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
+
Federal contracts use the same key: SAM.gov opportunities and entity registrations, USAspending awards, awards by ticker,
|
|
33
|
+
and the recompete radar (contracts ending in the next 24 months; Developer plans and up).
|
|
34
|
+
|
|
35
|
+
```python
|
|
36
|
+
sf.sam_opportunities(naics="5415", setAside="SBA")
|
|
37
|
+
sf.sam_entity(cage="02GJ5")
|
|
38
|
+
sf.company_federal_awards("LMT")
|
|
39
|
+
sf.recompetes(naics="5415", setAside="SBA", hasNotice="true")
|
|
40
|
+
```
|
|
41
|
+
|
|
32
42
|
Every endpoint in the [API docs](https://secfeedapi.com/docs/) has a method. Errors raise `SecFeedError`.
|
|
33
43
|
|
|
34
44
|
SecFeed is an independent service and is not affiliated with or endorsed by the U.S. Securities and Exchange Commission. Filing data comes from SEC EDGAR, which is public.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|