Home
last modified time | relevance | path

Searched refs:geoip2 (Results 1 – 25 of 218) sorted by relevance

123456789

/dports/sysutils/syslog-ng/syslog-ng-3.35.1/modules/geoip2/
H A DMakefile.am5 modules/geoip2/geoip-parser.c \
6 modules/geoip2/geoip-parser.h \
10 modules/geoip2/geoip-plugin.c \
11 modules/geoip2/maxminddb-helper.h \
12 modules/geoip2/maxminddb-helper.c
16 -I$(top_srcdir)/modules/geoip2 \
17 -I$(top_builddir)/modules/geoip2
28 modules/geoip2 modules/geoip2/ mod-geoip2: \
31 modules/geoip2 modules/geoip2/ mod-geoip2:
41 modules/geoip2/CMakeLists.txt
[all …]
/dports/net/py-GeoIP2/GeoIP2-python-4.2.0/tests/
H A Dmodels_test.py12 import geoip2.models
103 geoip2.records.Continent,
111 geoip2.records.Country,
121 geoip2.records.Location,
214 geoip2.records.Continent,
222 geoip2.records.Country,
227 geoip2.records.Location,
272 geoip2.records.Continent,
280 geoip2.records.Country,
285 geoip2.records.Location,
[all …]
H A Ddatabase_test.py12 import geoip2.database
23 reader = geoip2.database.Reader(
59 reader = geoip2.database.Reader(
76 reader = geoip2.database.Reader(
184 with geoip2.database.Reader(
225 with geoip2.database.Reader(
238 mode = geoip2.database.MODE_MMAP
242 mode = geoip2.database.MODE_FILE
246 mode = geoip2.database.MODE_MEMORY
250 mode = geoip2.database.MODE_FD
[all …]
/dports/net/py-GeoIP2/GeoIP2-python-4.2.0/geoip2/
H A Dmodels.py18 import geoip2.records
19 from geoip2.mixins import SimpleEquality
70 continent: geoip2.records.Continent
71 country: geoip2.records.Country
72 maxmind: geoip2.records.MaxMind
73 registered_country: geoip2.records.Country
75 traits: geoip2.records.Traits
86 self.country = geoip2.records.Country(
178 city: geoip2.records.City
179 location: geoip2.records.Location
[all …]
H A Ddatabase.py22 import geoip2
23 import geoip2.models
24 import geoip2.errors
25 from geoip2.types import IPAddress
26 from geoip2.models import (
126 Country, self._model_for(geoip2.models.Country, "Country", ip_address)
137 return cast(City, self._model_for(geoip2.models.City, "City", ip_address))
150 geoip2.models.AnonymousIP, "GeoIP2-Anonymous-IP", ip_address
177 geoip2.models.ConnectionType, "GeoIP2-Connection-Type", ip_address
204 self._model_for(geoip2.models.Enterprise, "Enterprise", ip_address),
[all …]
H A Dwebservice.py37 import geoip2
38 import geoip2.models
39 from geoip2.errors import (
48 from geoip2.models import City, Country, Insights
49 from geoip2.types import IPAddress
289 City, await self._response_for("city", geoip2.models.City, ip_address)
304 await self._response_for("country", geoip2.models.Country, ip_address),
322 await self._response_for("insights", geoip2.models.Insights, ip_address),
449 return cast(City, self._response_for("city", geoip2.models.City, ip_address))
462 Country, self._response_for("country", geoip2.models.Country, ip_address)
[all …]
/dports/net/py-GeoIP2/GeoIP2-python-4.2.0/docs/
H A Dindex.rst1 .. geoip2 documentation master file, created by
15 .. automodule:: geoip2
18 .. automodule:: geoip2.database
21 .. automodule:: geoip2.webservice
24 .. automodule:: geoip2.models
27 .. automodule:: geoip2.records
30 .. automodule:: geoip2.errors
H A Dconf.py22 import geoip2
59 version = geoip2.__version__
61 release = geoip2.__version__
/dports/net/py-GeoIP2/GeoIP2-python-4.2.0/
H A DHISTORY.rst16 and ``geoip2.record.Traits``.
44 on ``geoip2.webservice.Client``. Use ``account_id`` or a positional
55 * The ``network`` attribute was added to ``geoip2.record.Traits``,
56 ``geoip2.model.AnonymousIP``, ``geoip2.model.ASN``,
57 ``geoip2.model.ConnectionType``, ``geoip2.model.Domain``,
88 ``geoip2.record.Country`` and ``geoip2.record.RepresentedCountry``. This
150 <https://www.maxmind.com/en/geoip2-anonymous-ip-database>`_
161 ``geoip2.database``.
168 returns a ``geoip2.models.AnonymousIP`` object.
219 * Fixed missing import statements for geoip2.errors and geoip2.models.
[all …]
H A DREADME.rst17 To install the ``geoip2`` module, type:
21 $ pip install geoip2
68 >>> import geoip2.webservice
114 >>> import geoip2.webservice
201 >>> import geoip2.database
242 >>> import geoip2.database
272 >>> import geoip2.database
292 >>> import geoip2.database
311 >>> import geoip2.database
327 >>> import geoip2.database
[all …]
H A Dsetup.py7 import geoip2
17 version=geoip2.__version__,
31 license=geoip2.__license__,
/dports/sysutils/syslog-ng/syslog-ng-3.35.1/modules/geoip2/tests/
H A DMakefile.am3 modules/geoip2/tests/test_geoip_parser
8 -I$(top_srcdir)/modules/geoip2
12 -dlpreopen $(top_builddir)/modules/geoip2/libgeoip2-plugin.la
13 modules_geoip2_tests_test_geoip_parser_DEPENDENCIES = $(top_builddir)/modules/geoip2/libgeoip2-plug…
16 EXTRA_DIST += modules/geoip2/tests/CMakeLists.txt
H A Dtest_geoip_parser.c95 Test(geoip2, template_is_mandatory) in Test() argument
104 Test(geoip2, set_prefix) in Test() argument
114 Test(geoip2, empty_prefix) in Test() argument
124 Test(geoip2, test_basic) in Test() argument
137 TestSuite(geoip2, .init = setup, .fini = teardown);
/dports/finance/odoo/odoo-19d77c2a03335eb95a686bd69a1b56b38e87d609/odoo/addons/http_routing/
H A Dgeoipresolver.py11 import geoip2
12 import geoip2.database
14 geoip2 = None variable
20 self._db = geoip2.database.Reader(fname)
36 if not GeoIP and not geoip2:
48 except (ValueError, geoip2.errors.AddressNotFoundError):
/dports/net/clash/clash-1.6.0/component/mmdb/
H A Dmmdb.go12 var mmdb *geoip2.Reader
18 mmdb, err = geoip2.FromBytes(buffer)
26 instance, err := geoip2.Open(C.Path.MMDB())
33 func Instance() *geoip2.Reader {
36 mmdb, err = geoip2.Open(C.Path.MMDB())
/dports/www/nginx-full/ngx_http_geoip2_module-3.3/
H A Dngx_stream_geoip2_module.c136 if (geoip2->source.value.len > 0) {
258 if (geoip2->default_value.len > 0) {
259 v->data = geoip2->default_value.data;
260 v->len = geoip2->default_value.len;
491 ngx_stream_geoip2_ctx_t *geoip2; local
498 if (geoip2 == NULL) {
502 geoip2->database = database;
569 geoip2->lookup = ngx_pcalloc(cf->pool,
572 if (geoip2->lookup == NULL) {
579 geoip2->lookup[i - idx] = NULL;
[all …]
H A Dngx_http_geoip2_module.c159 if (geoip2->source.value.len > 0) {
289 if (geoip2->default_value.len > 0) {
290 v->data = geoip2->default_value.data;
291 v->len = geoip2->default_value.len;
522 ngx_http_geoip2_ctx_t *geoip2; local
529 if (geoip2 == NULL) {
533 geoip2->database = database;
549 if (geoip2->default_value.len > 0) {
601 if (geoip2->lookup == NULL) {
608 geoip2->lookup[i - idx] = NULL;
[all …]
/dports/net/ooni-mini/probe-engine-0.23.0/vendor/github.com/oschwald/geoip2-golang/
H A DREADME.md3 …d Status](https://travis-ci.org/oschwald/geoip2-golang.png?branch=master)](https://travis-ci.org/o…
4 …c](https://godoc.org/github.com/oschwald/geoip2-golang?status.png)](https://godoc.org/github.com/o…
6 This library reads MaxMind [GeoLite2](http://dev.maxmind.com/geoip/geoip2/geolite2/)
20 go get github.com/oschwald/geoip2-golang
25 [See GoDoc](http://godoc.org/github.com/oschwald/geoip2-golang) for
35 "github.com/oschwald/geoip2-golang"
41 db, err := geoip2.Open("GeoIP2-City.mmdb")
/dports/security/webfwlog/webfwlog-1.1.1/pgsql/
H A DREADME.geoip29 schema, such as geoip2. You will also need to grant USAGE privilege on the
33 CREATE SCHEMA geoip2;
34 GRANT USAGE ON SCHEMA geoip2 TO webfwlog;
35 SET search_path=geoip2,"$user",public;
37 GRANT SELECT ON geoip2.blocks TO webfwlog;
38 GRANT SELECT ON geoip2.locations TO webfwlog;
45 http://dev.maxmind.com/geoip/geoip2/geolite2/
55 COPY geoip2.blocks
57 COPY geoip2.locations
/dports/net/clash/clash-1.6.0/vendor/github.com/oschwald/geoip2-golang/
H A DREADME.md3 …(https://pkg.go.dev/badge/github.com/oschwald/geoip2-golang)](https://pkg.go.dev/github.com/oschwa…
5 This library reads MaxMind [GeoLite2](http://dev.maxmind.com/geoip/geoip2/geolite2/)
19 go get github.com/oschwald/geoip2-golang
24 [See GoDoc](http://godoc.org/github.com/oschwald/geoip2-golang) for
34 "github.com/oschwald/geoip2-golang"
40 db, err := geoip2.Open("GeoIP2-City.mmdb")
/dports/net/ooni-probe-cli/probe-cli-3.10.1/vendor/github.com/oschwald/geoip2-golang/
H A DREADME.md3 …(https://pkg.go.dev/badge/github.com/oschwald/geoip2-golang)](https://pkg.go.dev/github.com/oschwa…
5 This library reads MaxMind [GeoLite2](http://dev.maxmind.com/geoip/geoip2/geolite2/)
19 go get github.com/oschwald/geoip2-golang
24 [See GoDoc](http://godoc.org/github.com/oschwald/geoip2-golang) for
34 "github.com/oschwald/geoip2-golang"
40 db, err := geoip2.Open("GeoIP2-City.mmdb")
/dports/net/syncthing/syncthing-1.18.1/syncthing/vendor/github.com/oschwald/geoip2-golang/
H A DREADME.md3 …(https://pkg.go.dev/badge/github.com/oschwald/geoip2-golang)](https://pkg.go.dev/github.com/oschwa…
5 This library reads MaxMind [GeoLite2](http://dev.maxmind.com/geoip/geoip2/geolite2/)
19 go get github.com/oschwald/geoip2-golang
24 [See GoDoc](http://godoc.org/github.com/oschwald/geoip2-golang) for
34 "github.com/oschwald/geoip2-golang"
40 db, err := geoip2.Open("GeoIP2-City.mmdb")
/dports/net/dshell/Dshell-502a546/dshell/
H A Ddshellgeoip.py12 import geoip2.database
13 import geoip2.errors
28 self.geoccdb = geoip2.database.Reader(self.geoccfile)
29 self.geoasndb = geoip2.database.Reader(self.geoasnfile)
67 except geoip2.errors.AddressNotFoundError:
109 except geoip2.errors.AddressNotFoundError:
/dports/dns/py-dns-crawler/dns-crawler-1.4.9/dns_crawler/
H A Dgeoip_utils.py21 import geoip2.database
33 geoip_country = geoip2.database.Reader(path.join(pwd, config["geoip"]["country"]))
36 geoip_isp = geoip2.database.Reader(path.join(pwd, config["geoip"]["isp"]))
39 geoip_asn = geoip2.database.Reader(path.join(pwd, config["geoip"]["asn"]))
/dports/net/storj/storj-1.45.3/vendor/github.com/oschwald/maxminddb-golang/
H A DREADME.md6 read [GeoLite2](http://dev.maxmind.com/geoip/geoip2/geolite2/) and
7 [GeoIP2](https://www.maxmind.com/en/geoip2-databases) databases,
8 [geoip2](https://github.com/oschwald/geoip2-golang) provides a higher-level

123456789