Skip to content

Commit a691fd9

Browse files
BenFradetbenjben
authored andcommitted
Move the Python codebase to its own repository (closes #197)
1 parent 5a7e66d commit a691fd9

File tree

11 files changed

+1
-8401
lines changed

11 files changed

+1
-8401
lines changed

README.md

Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ If there is an issue with the database necessitating a re-release within the mon
2525
## Maintainers
2626

2727
* Java/Scala: [Snowplow Analytics Ltd][snowplow-analytics]
28-
* Python: [Don Spaulding][donspaulding]
2928
* node.js (JavaScript): [Martin Katrenik][mkatrenik]
3029
* .NET (C#): [Sepp Wijnands][swijnands] at [iPerform Software][iperform]
3130
* Go: [Thomas Sileo][tsileo]
@@ -104,39 +103,7 @@ Check out the dedicated repository: https://github.com/snowplow-referer-parser/r
104103

105104
## Usage: Python
106105

107-
Create a new instance of a Referer object by passing in the url you want to parse:
108-
109-
```python
110-
from referer_parser import Referer
111-
112-
referer_url = 'http://www.google.com/search?q=gateway+oracle+cards+denise+linn&hl=en&client=safari'
113-
114-
r = Referer(referer_url)
115-
```
116-
117-
The `r` variable now holds a Referer instance. The important attributes are:
118-
119-
```python
120-
print(r.known) # True
121-
print(r.referer) # 'Google'
122-
print(r.medium) # 'search'
123-
print(r.search_parameter) # 'q'
124-
print(r.search_term) # 'gateway oracle cards denise linn'
125-
print(r.uri) # ParseResult(scheme='http', netloc='www.google.com', path='/search', params='', query='q=gateway+oracle+cards+denise+linn&hl=en&client=safari', fragment='')
126-
```
127-
128-
Optionally, pass in the current URL as well, to handle internal referers
129-
130-
```python
131-
from referer_parser import Referer
132-
133-
referer_url = 'http://www.snowplowanalytics.com/about/team'
134-
curr_url = 'http://www.snowplowanalytics.com/account/profile'
135-
136-
r = Referer(referer_url, curr_url)
137-
```
138-
139-
For more information, please see the Python [README][python-readme].
106+
Check out the dedicated repository: https://github.com/snowplow-referer-parser/python-referer-parser
140107

141108
## Usage: node.js
142109

@@ -282,8 +249,6 @@ You can contact the Snowplow Analytics team through any of the [channels listed
282249

283250
The Java/Scala port is copyright 2012-2014 [Snowplow Analytics Ltd][snowplow-analytics] and is available under the [Apache License, Version 2.0][apache-license].
284251

285-
The Python port is copyright 2012-2014 [Don Spaulding][donspaulding] and is available under the [Apache License, Version 2.0][apache-license].
286-
287252
The node.js (JavaScript) port is copyright 2013-2014 [Martin Katrenik][mkatrenik] and is available under the [Apache License, Version 2.0][apache-license].
288253

289254
The .NET (C#) port is copyright 2013-2014 [iPerform Software][iperform] and is available under the [Apache License, Version 2.0][apache-license].

python/.gitignore

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

python/LICENSE-2.0.txt

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

python/MANIFEST.in

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

python/README.md

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

0 commit comments

Comments
 (0)