Skip to content

Commit 109f497

Browse files
committed
Removed outdated YAML to JSON conversion script.
1 parent 640c306 commit 109f497

File tree

2 files changed

+2
-27
lines changed

2 files changed

+2
-27
lines changed

python/README.md

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
This is the Python implementation of [referer-parser] [referer-parser], the library for extracting search marketing data from referer _(sic)_ URLs.
44

5-
The implementation uses the shared 'database' of known referers found in [`referers.yml`] [referers-yml] (converted to a `referers.json` file,
6-
see below).
5+
The implementation uses the shared 'database' of known referers found in [`referers.yml`] [referers-yml].
76

87
The Python version of referer-parser is maintained by [Don Spaulding] [donspaulding].
98

@@ -58,18 +57,6 @@ print(r.uri) # ParseResult(scheme='http', netloc='www.snowplowana
5857

5958
The `uri` attribute is an instance of ParseResult from the standard library's `urlparse` module.
6059

61-
## referers.json
62-
63-
Unlike the other ports, the Python version of referer-parser uses a `referers.json` file, generated from the main `referers.yml` file. This is for two reasons:
64-
65-
1. Python's standard library includes a JSON parser but not a YAML parser
66-
2. Loading from JSON in Python is significantly faster than loading from YAML
67-
68-
To support the `referers.json` file, the distribution process for Python looks like this:
69-
70-
$ ./sync_yaml.sh
71-
$ cd python/referer_parser && python build_json.py
72-
$ cd .. && python setup.py sdist bdist_wininst upload
7360

7461
## Contributing
7562

@@ -81,7 +68,7 @@ To support the `referers.json` file, the distribution process for Python looks l
8168

8269
## Copyright and license
8370

84-
The referer-parser Python library is copyright 2012-2013 Don Spaulding.
71+
The referer-parser Python library is copyright 2012-2016 Don Spaulding.
8572

8673
Licensed under the [Apache License, Version 2.0] [license] (the "License");
8774
you may not use this software except in compliance with the License.

python/referer_parser/build_json.py

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

0 commit comments

Comments
 (0)