Skip to content

Commit 7ff0ff8

Browse files
authored
chore: utils update (#3909)
1 parent b10379c commit 7ff0ff8

File tree

4 files changed

+10
-31
lines changed

4 files changed

+10
-31
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## 0.16.21-dev1
2+
3+
### Enhancements
4+
5+
### Features
6+
7+
### Fixes
8+
19
## 0.16.20
210

311
### Enhancements

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,5 +257,4 @@ Encountered a bug? Please create a new [GitHub issue](https://github.com/Unstruc
257257

258258
## :chart_with_upwards_trend: Analytics
259259

260-
We’ve partnered with Scarf (https://scarf.sh) to collect anonymized user statistics to understand which features our community is using and how to prioritize product decision-making in the future. To learn more about how we collect and use this data, please read our [Privacy Policy](https://unstructured.io/privacy-policy).
261-
To opt out of this data collection, you can set the environment variable `SCARF_NO_ANALYTICS=true` before running any `unstructured` commands.
260+
This library includes a very lightweight analytics "ping" when the library is loaded, however you can opt out of this data collection by setting the environment variable `DO_NOT_TRACK=true` before executing any `unstructured` code. To learn more about how we collect and use this data, please read our [Privacy Policy](https://unstructured.io/privacy-policy).

unstructured/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.16.20" # pragma: no cover
1+
__version__ = "0.16.21-dev1" # pragma: no cover

unstructured/utils.py

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -294,20 +294,6 @@ def scarf_analytics():
294294
+ "&dev=true",
295295
timeout=10,
296296
)
297-
requests.get(
298-
"https://packages2.unstructured.io/python-telemetry?version="
299-
+ __version__
300-
+ "&platform="
301-
+ platform.system()
302-
+ "&python"
303-
+ python_version
304-
+ "&arch="
305-
+ platform.machine()
306-
+ "&gpu="
307-
+ str(gpu_present)
308-
+ "&dev=true",
309-
timeout=10,
310-
)
311297
else:
312298
requests.get(
313299
"https://packages.unstructured.io/python-telemetry?version="
@@ -323,20 +309,6 @@ def scarf_analytics():
323309
+ "&dev=false",
324310
timeout=10,
325311
)
326-
requests.get(
327-
"https://packages2.unstructured.io/python-telemetry?version="
328-
+ __version__
329-
+ "&platform="
330-
+ platform.system()
331-
+ "&python"
332-
+ python_version
333-
+ "&arch="
334-
+ platform.machine()
335-
+ "&gpu="
336-
+ str(gpu_present)
337-
+ "&dev=false",
338-
timeout=10,
339-
)
340312
except Exception:
341313
pass
342314

0 commit comments

Comments
 (0)