aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/examples/howto/advanced
diff options
context:
space:
mode:
Diffstat (limited to 'lang/python/examples/howto/advanced')
-rwxr-xr-xlang/python/examples/howto/advanced/cython/keycount.pyx26
-rw-r--r--lang/python/examples/howto/advanced/cython/requirements.txt1
-rw-r--r--lang/python/examples/howto/advanced/cython/setup.py6
3 files changed, 0 insertions, 33 deletions
diff --git a/lang/python/examples/howto/advanced/cython/keycount.pyx b/lang/python/examples/howto/advanced/cython/keycount.pyx
deleted file mode 100755
index 2aa636d5..00000000
--- a/lang/python/examples/howto/advanced/cython/keycount.pyx
+++ /dev/null
@@ -1,26 +0,0 @@
-from __future__ import absolute_import
-
-import cython
-import gpg
-
-c = gpg.Context()
-seckeys = c.keylist(pattern=None, secret=True)
-pubkeys = c.keylist(pattern=None, secret=False)
-
-seclist = list(seckeys)
-secnum = len(seclist)
-
-publist = list(pubkeys)
-pubnum = len(publist)
-
-if cython.compiled is True:
- cc = "Powered by Cython compiled C code."
-else:
- cc = "Powered by Python."
-
-print("""
- Number of secret keys: {0}
- Number of public keys: {1}
-
- {2}
-""".format(secnum, pubnum, cc))
diff --git a/lang/python/examples/howto/advanced/cython/requirements.txt b/lang/python/examples/howto/advanced/cython/requirements.txt
deleted file mode 100644
index f6629e02..00000000
--- a/lang/python/examples/howto/advanced/cython/requirements.txt
+++ /dev/null
@@ -1 +0,0 @@
-cython
diff --git a/lang/python/examples/howto/advanced/cython/setup.py b/lang/python/examples/howto/advanced/cython/setup.py
deleted file mode 100644
index 849639e2..00000000
--- a/lang/python/examples/howto/advanced/cython/setup.py
+++ /dev/null
@@ -1,6 +0,0 @@
-from setuptools import setup
-from Cython.Build import cythonize
-
-setup(
- ext_modules = cythonize("keycount.pyx", annotate=True)
-)