summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-20 06:56:36 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-20 06:56:36 +0000
commit07145428939044b499c31a23f41806af2b64e455 (patch)
tree6f56c6a54877c674fb9c831597def7cd8c5e994e
parentb2971fbc0a5d270ec367429e4cf9e20c46363a32 (diff)
automatic import of python-FireEyeopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-fireeye.spec363
-rw-r--r--sources1
3 files changed, 365 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..5f1bf89 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/FireEye-0.5.1.tar.gz
diff --git a/python-fireeye.spec b/python-fireeye.spec
new file mode 100644
index 0000000..4603626
--- /dev/null
+++ b/python-fireeye.spec
@@ -0,0 +1,363 @@
+%global _empty_manifest_terminate_build 0
+Name: python-FireEye
+Version: 0.5.1
+Release: 1
+Summary: A video over TCP client
+License: MIT License
+URL: https://github.com/0xJeremy/FireEye
+Source0: https://mirrors.aliyun.com/pypi/web/packages/65/a8/a2ce60031594e42bb0c1eb288923b4ce6fba05d819cf0ba1768bd8b72625/FireEye-0.5.1.tar.gz
+BuildArch: noarch
+
+
+%description
+# FireEye
+
+# THIS PROJECT IS NO LONGER MAINTAINED. USE [SOCKET.ENGINE](https://github.com/0xJeremy/socket.engine) INSTEAD.
+
+## Installation
+
+Node.js installation:
+```
+npm install fireeye
+```
+
+Python installation:
+```
+pip install FireEye
+```
+
+These libraries are developed in parallel, and designed to be used together.
+Please note: The Python side of this library is tested only with Python 3.
+
+## Features
+
+FireEye enables real-time bidirectional communication between a Node.js server, and a Python process. It is specifically designed to stream video between these two processes when running on separate devices.
+
+Its main features are:
+
+### Speed
+
+Connections are made using TCP sockets and can pass information from processes extremely quickly and reliably. FireEye operates using IPv4.
+
+### Easy to use
+
+This library was designed to lower the barrier to entry as much as possible. As such, it has a built in wrapper to send images from process to process.
+
+## How to use — Node.js
+
+The following example imports and creates the data socket in Node.js, and then sets up a listener event.
+```javascript
+const FireEye = require('fireeye');
+
+var socket = new FireEye();
+
+socket.on('image', (data) => {
+ /* your code here */
+})
+
+```
+The example above can be used to receive entire images sent from Python.
+
+FireEye can also be used to send arbitrary information across the TCP socket. Any JSON serializable object can be sent:
+```javascript
+const FireEye = require('fireeye');
+
+var socket = new FireEye();
+
+var channel = 'channel_1';
+
+socket.write(channel, 'Hello from Node.js!');
+
+socket.on(channel, (data) => {
+ /* your code here */
+});
+```
+Any channel name can be used, except for `image` which is reserved for sending images from Python → Node.js
+
+## How to use — Python
+
+The following is a simple example of how to use FireEye in Python:
+```python
+from FireEye import FireEye
+import cv2
+
+socket = FireEye.FireEye()
+
+cap = cv2.VideoCapture(0) #Camera Number Here
+
+ret, frame = cap.read()
+
+socket.writeImg(frame)
+```
+Please Note: Creating a FireEye socket in Python is a _blocking action_ and will not finish until the socket is opened.
+
+As shown above, arbitrary data can be sent across FireEye. Here is an example in Python that matches the one above:
+```python
+from FireEye import FireEye
+
+socket = FireEye.FireEye()
+
+channel = 'channel_1'
+
+socket.write(channel, 'Hello from Python!')
+
+response = socket.get(channel)
+```
+
+FireEye will automatically store the most recent piece of data received over a channel. This data is accessible via the `get` method. FireEye runs on a separate thread from the rest of your program and will therefore be constantly reading from the data socket.
+
+
+
+
+%package -n python3-FireEye
+Summary: A video over TCP client
+Provides: python-FireEye
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-FireEye
+# FireEye
+
+# THIS PROJECT IS NO LONGER MAINTAINED. USE [SOCKET.ENGINE](https://github.com/0xJeremy/socket.engine) INSTEAD.
+
+## Installation
+
+Node.js installation:
+```
+npm install fireeye
+```
+
+Python installation:
+```
+pip install FireEye
+```
+
+These libraries are developed in parallel, and designed to be used together.
+Please note: The Python side of this library is tested only with Python 3.
+
+## Features
+
+FireEye enables real-time bidirectional communication between a Node.js server, and a Python process. It is specifically designed to stream video between these two processes when running on separate devices.
+
+Its main features are:
+
+### Speed
+
+Connections are made using TCP sockets and can pass information from processes extremely quickly and reliably. FireEye operates using IPv4.
+
+### Easy to use
+
+This library was designed to lower the barrier to entry as much as possible. As such, it has a built in wrapper to send images from process to process.
+
+## How to use — Node.js
+
+The following example imports and creates the data socket in Node.js, and then sets up a listener event.
+```javascript
+const FireEye = require('fireeye');
+
+var socket = new FireEye();
+
+socket.on('image', (data) => {
+ /* your code here */
+})
+
+```
+The example above can be used to receive entire images sent from Python.
+
+FireEye can also be used to send arbitrary information across the TCP socket. Any JSON serializable object can be sent:
+```javascript
+const FireEye = require('fireeye');
+
+var socket = new FireEye();
+
+var channel = 'channel_1';
+
+socket.write(channel, 'Hello from Node.js!');
+
+socket.on(channel, (data) => {
+ /* your code here */
+});
+```
+Any channel name can be used, except for `image` which is reserved for sending images from Python → Node.js
+
+## How to use — Python
+
+The following is a simple example of how to use FireEye in Python:
+```python
+from FireEye import FireEye
+import cv2
+
+socket = FireEye.FireEye()
+
+cap = cv2.VideoCapture(0) #Camera Number Here
+
+ret, frame = cap.read()
+
+socket.writeImg(frame)
+```
+Please Note: Creating a FireEye socket in Python is a _blocking action_ and will not finish until the socket is opened.
+
+As shown above, arbitrary data can be sent across FireEye. Here is an example in Python that matches the one above:
+```python
+from FireEye import FireEye
+
+socket = FireEye.FireEye()
+
+channel = 'channel_1'
+
+socket.write(channel, 'Hello from Python!')
+
+response = socket.get(channel)
+```
+
+FireEye will automatically store the most recent piece of data received over a channel. This data is accessible via the `get` method. FireEye runs on a separate thread from the rest of your program and will therefore be constantly reading from the data socket.
+
+
+
+
+%package help
+Summary: Development documents and examples for FireEye
+Provides: python3-FireEye-doc
+%description help
+# FireEye
+
+# THIS PROJECT IS NO LONGER MAINTAINED. USE [SOCKET.ENGINE](https://github.com/0xJeremy/socket.engine) INSTEAD.
+
+## Installation
+
+Node.js installation:
+```
+npm install fireeye
+```
+
+Python installation:
+```
+pip install FireEye
+```
+
+These libraries are developed in parallel, and designed to be used together.
+Please note: The Python side of this library is tested only with Python 3.
+
+## Features
+
+FireEye enables real-time bidirectional communication between a Node.js server, and a Python process. It is specifically designed to stream video between these two processes when running on separate devices.
+
+Its main features are:
+
+### Speed
+
+Connections are made using TCP sockets and can pass information from processes extremely quickly and reliably. FireEye operates using IPv4.
+
+### Easy to use
+
+This library was designed to lower the barrier to entry as much as possible. As such, it has a built in wrapper to send images from process to process.
+
+## How to use — Node.js
+
+The following example imports and creates the data socket in Node.js, and then sets up a listener event.
+```javascript
+const FireEye = require('fireeye');
+
+var socket = new FireEye();
+
+socket.on('image', (data) => {
+ /* your code here */
+})
+
+```
+The example above can be used to receive entire images sent from Python.
+
+FireEye can also be used to send arbitrary information across the TCP socket. Any JSON serializable object can be sent:
+```javascript
+const FireEye = require('fireeye');
+
+var socket = new FireEye();
+
+var channel = 'channel_1';
+
+socket.write(channel, 'Hello from Node.js!');
+
+socket.on(channel, (data) => {
+ /* your code here */
+});
+```
+Any channel name can be used, except for `image` which is reserved for sending images from Python → Node.js
+
+## How to use — Python
+
+The following is a simple example of how to use FireEye in Python:
+```python
+from FireEye import FireEye
+import cv2
+
+socket = FireEye.FireEye()
+
+cap = cv2.VideoCapture(0) #Camera Number Here
+
+ret, frame = cap.read()
+
+socket.writeImg(frame)
+```
+Please Note: Creating a FireEye socket in Python is a _blocking action_ and will not finish until the socket is opened.
+
+As shown above, arbitrary data can be sent across FireEye. Here is an example in Python that matches the one above:
+```python
+from FireEye import FireEye
+
+socket = FireEye.FireEye()
+
+channel = 'channel_1'
+
+socket.write(channel, 'Hello from Python!')
+
+response = socket.get(channel)
+```
+
+FireEye will automatically store the most recent piece of data received over a channel. This data is accessible via the `get` method. FireEye runs on a separate thread from the rest of your program and will therefore be constantly reading from the data socket.
+
+
+
+
+%prep
+%autosetup -n FireEye-0.5.1
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-FireEye -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.5.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..6a2f22a
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+0de6d286b1a5abcf49519de8a8b237a7 FireEye-0.5.1.tar.gz