From 0f0cb7b43288502106088483ff646626e1561376 Mon Sep 17 00:00:00 2001 From: teo Date: Wed, 22 May 2024 09:52:41 +0300 Subject: [PATCH] removed old files --- notebooks/test.ipynb | 1541 ----------------- packages/hagrid/hagrid.egg-info/PKG-INFO | 27 - packages/hagrid/hagrid.egg-info/SOURCES.txt | 40 - .../hagrid.egg-info/dependency_links.txt | 1 - .../hagrid/hagrid.egg-info/entry_points.txt | 2 - packages/hagrid/hagrid.egg-info/requires.txt | 19 - packages/hagrid/hagrid.egg-info/top_level.txt | 2 - 7 files changed, 1632 deletions(-) delete mode 100644 notebooks/test.ipynb delete mode 100644 packages/hagrid/hagrid.egg-info/PKG-INFO delete mode 100644 packages/hagrid/hagrid.egg-info/SOURCES.txt delete mode 100644 packages/hagrid/hagrid.egg-info/dependency_links.txt delete mode 100644 packages/hagrid/hagrid.egg-info/entry_points.txt delete mode 100644 packages/hagrid/hagrid.egg-info/requires.txt delete mode 100644 packages/hagrid/hagrid.egg-info/top_level.txt diff --git a/notebooks/test.ipynb b/notebooks/test.ipynb deleted file mode 100644 index 33b119af460..00000000000 --- a/notebooks/test.ipynb +++ /dev/null @@ -1,1541 +0,0 @@ -{ - "cells": [ - { - "cell_type": "code", - "execution_count": 1, - "metadata": {}, - "outputs": [], - "source": [ - "import syft as sy" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Staging Protocol Changes...\n", - "Document Store's SQLite DB path: /tmp/syft/098f6bcd462143738ade4e832627b4f6/db/098f6bcd462143738ade4e832627b4f6.sqlite\n", - "Action Store's SQLite DB path: /tmp/syft/098f6bcd462143738ade4e832627b4f6/db/098f6bcd462143738ade4e832627b4f6.sqlite\n", - "Creating default worker image with tag='local-dev'\n", - "Setting up worker poolname=default-pool workers=0 image_uid=e8a9044e99584d5f8efadc1aa0ec3a96 in_memory=True\n", - "Created default worker pool.\n", - "Data Migrated to latest version !!!\n" - ] - } - ], - "source": [ - "node = sy.orchestra.launch(\n", - " name=\"test\",\n", - " dev_mode=True,\n", - " reset=True,\n", - ")" - ] - }, - { - "cell_type": "code", - "execution_count": 14, - "metadata": {}, - "outputs": [ - { - "ename": "AttributeError", - "evalue": "'NodeHandle' object has no attribute 'settings'", - "output_type": "error", - "traceback": [ - "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", - "\u001b[0;31mAttributeError\u001b[0m Traceback (most recent call last)", - "Cell \u001b[0;32mIn[14], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m node\u001b[38;5;241m.\u001b[39msettings\n", - "\u001b[0;31mAttributeError\u001b[0m: 'NodeHandle' object has no attribute 'settings'" - ] - } - ], - "source": [ - "node" - ] - }, - { - "cell_type": "code", - "execution_count": 4, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Logged into as \n" - ] - }, - { - "data": { - "text/html": [ - "
SyftWarning: You are using a default password. Please change the password using `[your_client].me.set_password([new_password])`.

" - ], - "text/plain": [ - "SyftWarning: You are using a default password. Please change the password using `[your_client].me.set_password([new_password])`." - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], - "source": [ - "client = node.login(password=\"changethis\", email=\"info@openmined.org\")" - ] - }, - { - "cell_type": "code", - "execution_count": 5, - "metadata": {}, - "outputs": [ - { - "data": { - "text/html": [ - "
SyftSuccess: User 'a' successfully registered! To see users, run `[your_client].users`

" - ], - "text/plain": [ - "SyftSuccess: User 'a' successfully registered! To see users, run `[your_client].users`" - ] - }, - "execution_count": 5, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "client.register(name='a', email='a@a.com', password=\"a\", password_verify=\"a\")" - ] - }, - { - "cell_type": "code", - "execution_count": 6, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Logged into as \n" - ] - } - ], - "source": [ - "client_ds = node.login(password=\"a\", email='a@a.com')" - ] - }, - { - "cell_type": "code", - "execution_count": 7, - "metadata": {}, - "outputs": [ - { - "data": { - "text/html": [ - "\n", - " \n", - "
\n", - " \"Logo\"\n",\n", - "

Welcome to test

\n", - "
\n", - " Node Type: Domain
Node Side Type: High Side
Syft Version: 0.8.7-beta.7
\n", - "
\n", - "
\n", - " ⓘ \n", - " This domain is run by the library PySyft to learn more about how it works visit\n", - " github.com/OpenMined/PySyft.\n", - "
\n", - "

Commands to Get Started

\n", - " \n", - "
    \n", - " \n", - "
  • <your_client>.datasets - list datasets
  • \n", - "
  • <your_client>.code - list code
  • \n", - "
  • <your_client>.projects - list projects
  • \n", - "
  • \n", - " <your_client>.code.submit? - display function signature\n", - "
  • \n", - "
\n", - " \n", - "

\n", - " " - ], - "text/plain": [ - "" - ] - }, - "execution_count": 7, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "client_ds" - ] - }, - { - "cell_type": "code", - "execution_count": 8, - "metadata": {}, - "outputs": [ - { - "data": { - "text/html": [ - "
SyftSuccess: Syft function 'test' successfully created. To add a code request, please create a project using `project = syft.Project(...)`, then use command `project.create_code_request`.

" - ], - "text/plain": [ - "SyftSuccess: Syft function 'test' successfully created. To add a code request, please create a project using `project = syft.Project(...)`, then use command `project.create_code_request`." - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], - "source": [ - "@sy.syft_function_single_use()\n", - "def test():\n", - " return 1" - ] - }, - { - "cell_type": "code", - "execution_count": 9, - "metadata": {}, - "outputs": [ - { - "data": { - "text/html": [ - "\n", - " \n", - "
\n", - "

Request

\n", - "

Id: ba8beaf279ec4d7281d952db935b019f

\n", - "

Request time: 2024-05-21 10:12:41

\n", - " \n", - " \n", - "

Status: RequestStatus.PENDING

\n", - "

Requested on: Test of type Domain

\n", - "

Requested by: a (a@a.com)

\n", - "

Changes: Request to change test (Pool Id: default-pool) to permission RequestStatus.APPROVED. No nested requests.

\n", - "
\n", - "\n", - " " - ], - "text/markdown": [ - "```python\n", - "class Request:\n", - " id: str = ba8beaf279ec4d7281d952db935b019f\n", - " request_time: str = 2024-05-21 10:12:41\n", - " updated_at: str = None\n", - " status: str = RequestStatus.PENDING\n", - " changes: str = ['Request to change test (Pool Id: default-pool) to permission RequestStatus.APPROVED. No nested requests']\n", - " requesting_user_verify_key: str = e39e75b03b4e62959ba0b6f550b29f229a05a75ca23389394974557ac4d8edd6\n", - "\n", - "```" - ], - "text/plain": [ - "syft.service.request.request.Request" - ] - }, - "execution_count": 9, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "client_ds.code.request_code_execution(test)" - ] - }, - { - "cell_type": "code", - "execution_count": 10, - "metadata": {}, - "outputs": [], - "source": [ - "r = client.requests[0]" - ] - }, - { - "cell_type": "code", - "execution_count": 11, - "metadata": {}, - "outputs": [ - { - "data": { - "text/html": [ - "\n", - " \n", - "
\n", - "

Request

\n", - "

Id: ba8beaf279ec4d7281d952db935b019f

\n", - "

Request time: 2024-05-21 10:12:41

\n", - " \n", - " \n", - "

Status: RequestStatus.PENDING

\n", - "

Requested on: Test of type Domain

\n", - "

Requested by: a (a@a.com)

\n", - "

Changes: Request to change test (Pool Id: default-pool) to permission RequestStatus.APPROVED. No nested requests.

\n", - "
\n", - "\n", - " " - ], - "text/markdown": [ - "```python\n", - "class Request:\n", - " id: str = ba8beaf279ec4d7281d952db935b019f\n", - " request_time: str = 2024-05-21 10:12:41\n", - " updated_at: str = None\n", - " status: str = RequestStatus.PENDING\n", - " changes: str = ['Request to change test (Pool Id: default-pool) to permission RequestStatus.APPROVED. No nested requests']\n", - " requesting_user_verify_key: str = e39e75b03b4e62959ba0b6f550b29f229a05a75ca23389394974557ac4d8edd6\n", - "\n", - "```" - ], - "text/plain": [ - "syft.service.request.request.Request" - ] - }, - "execution_count": 11, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "r" - ] - }, - { - "cell_type": "code", - "execution_count": 12, - "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "" - ] - }, - "execution_count": 12, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "r.id" - ] - }, - { - "cell_type": "code", - "execution_count": 13, - "metadata": {}, - "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "---------------------------------------------------------------------------\n", - "SyftAttributeError\n", - "---------------------------------------------------------------------------\n", - "Exception: 'APIModule' apirequest object has no submodule or method 'get', you may not have permission to access the module you are trying to access.If you think this is an error, try calling `client.refresh()` to update the API.\n" - ] - } - ], - "source": [ - "res = client.api.services.request.get(r.id)\n", - "res" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [ - { - "data": { - "text/html": [ - "
SyftSuccess: request successfully deleted.

" - ], - "text/plain": [ - "SyftSuccess: request successfully deleted." - ] - }, - "execution_count": 13, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "client.api.services.request.delete(r.id)\n" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [ - { - "data": { - "text/html": [ - "\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "
\n", - "
\n", - "
\n", - "

Request Tuple

\n", - "
\n", - "\n", - "
\n", - "
\n", - "
\n", - "
\n", - "
\n", - " \n", - "
\n", - " \n", - "
\n", - " \n", - "
\n", - "\n", - "

0

\n", - "
\n", - "
\n", - " \n", - "
\n", - "
\n", - " \n", - "
\n", - "
\n" - ], - "text/plain": [ - "(syft.service.request.request.Request,)" - ] - }, - "execution_count": 14, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "res = client.api.services.request.get(r.id)\n", - "res, " - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "/home/teo/OpenMined/PySyft/packages/syft/src/syft/client/api.py:1209: TypeHintWarning: Skipping type check against 'UID'; this looks like a string-form forward reference imported from another module\n", - " check_type(arg, t) # raises Exception\n", - "/home/teo/OpenMined/PySyft/packages/syft/src/syft/client/api.py:1209: TypeHintWarning: Skipping type check against 'bool'; this looks like a string-form forward reference imported from another module\n", - " check_type(arg, t) # raises Exception\n" - ] - } - ], - "source": [ - "res = client.api.services.request.get(r.id, True)\n", - "res" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [ - { - "data": { - "text/html": [ - "
SyftError: Object with id=4b62c31bd1f94b34b6495716bf73f401 not found.

" - ], - "text/plain": [ - "SyftError: Object with id=4b62c31bd1f94b34b6495716bf73f401 not found." - ] - }, - "execution_count": 16, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "client.api.services.request.restore(r.id)" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [ - { - "data": { - "text/html": [ - "\n", - " \n", - "
\n", - "

Request

\n", - "

Id: 4b62c31bd1f94b34b6495716bf73f401

\n", - "

Request time: 2024-05-20 06:41:27

\n", - " \n", - " \n", - "

Status: RequestStatus.PENDING

\n", - "

Requested on: Test of type Domain

\n", - "

Requested by: a (a@a.com)

\n", - "

Changes: Request to change test (Pool Id: default-pool) to permission RequestStatus.APPROVED.Nested Requests not resolved..

\n", - "
\n", - "\n", - " " - ], - "text/markdown": [ - "```python\n", - "class Request:\n", - " id: str = 4b62c31bd1f94b34b6495716bf73f401\n", - " request_time: str = 2024-05-20 06:41:27\n", - " updated_at: str = None\n", - " status: str = RequestStatus.PENDING\n", - " changes: str = ['Request to change test (Pool Id: default-pool) to permission RequestStatus.APPROVED.Nested Requests not resolved.']\n", - " requesting_user_verify_key: str = cc009ae56519e33299861d6f87186227e5d3a6ce0819f239e0495f5d1d186fd3\n", - "\n", - "```" - ], - "text/plain": [ - "syft.service.request.request.Request" - ] - }, - "execution_count": 17, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "res = client.api.services.request.get(r.id)\n", - "res" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [ - { - "data": { - "text/html": [ - "
SyftSuccess: request successfully deleted.

" - ], - "text/plain": [ - "SyftSuccess: request successfully deleted." - ] - }, - "execution_count": 18, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "client.api.services.request.delete(r.id, True)\n" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [ - { - "data": { - "text/html": [ - "(None,)" - ], - "text/plain": [ - "(None,)" - ] - }, - "execution_count": 19, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "res = client.api.services.request.get(r.id, True)\n", - "res, " - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "obj = sy.ActionObject.from_obj([1,2,3])" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "ser = sy.serialize(obj, to_bytes=True)" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "new_obj = sy.deserialize(ser, from_bytes=True)" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "obj._created_date" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [ - { - "data": { - "text/html": [ - "[1, 2, 3]" - ], - "text/markdown": [ - "```python\n", - "Pointer\n", - "[1, 2, 3]\n", - "```\n" - ], - "text/plain": [ - "Pointer:\n", - "[1, 2, 3]" - ] - }, - "execution_count": 24, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "new_obj" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [ - { - "data": { - "text/markdown": [ - "```python\n", - "Pointer\n", - "[1, 2, 3]\n", - "```\n" - ], - "text/plain": [ - "Pointer:\n", - "[1, 2, 3]" - ] - }, - "execution_count": 25, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "obj.send(client)" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "syft_3.11", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.11.8" - } - }, - "nbformat": 4, - "nbformat_minor": 2 -} diff --git a/packages/hagrid/hagrid.egg-info/PKG-INFO b/packages/hagrid/hagrid.egg-info/PKG-INFO deleted file mode 100644 index 65971a9b733..00000000000 --- a/packages/hagrid/hagrid.egg-info/PKG-INFO +++ /dev/null @@ -1,27 +0,0 @@ -Metadata-Version: 2.1 -Name: hagrid -Version: 0.3.112 -Summary: Happy Automation for Grid -Author: Andrew Trask -Description-Content-Type: text/plain -Requires-Dist: ascii_magic -Requires-Dist: click>=8.1.7 -Requires-Dist: cryptography>=41.0.4 -Requires-Dist: gitpython -Requires-Dist: jinja2 -Requires-Dist: names -Requires-Dist: packaging>=23.0 -Requires-Dist: paramiko -Requires-Dist: pyOpenSSL>=23.2.0 -Requires-Dist: requests -Requires-Dist: rich -Requires-Dist: setuptools -Requires-Dist: virtualenv-api -Requires-Dist: virtualenv -Requires-Dist: PyYAML -Requires-Dist: tqdm -Requires-Dist: gevent<=23.9.1,>=22.10.2 -Requires-Dist: ansible -Requires-Dist: ansible-core - -HAGrid is the swiss army knife of OpenMined's PySyft and PyGrid. diff --git a/packages/hagrid/hagrid.egg-info/SOURCES.txt b/packages/hagrid/hagrid.egg-info/SOURCES.txt deleted file mode 100644 index 9a27c68e857..00000000000 --- a/packages/hagrid/hagrid.egg-info/SOURCES.txt +++ /dev/null @@ -1,40 +0,0 @@ -README.md -setup.py -hagrid/__init__.py -hagrid/art.py -hagrid/auth.py -hagrid/azure.py -hagrid/cache.py -hagrid/cli.py -hagrid/deps.py -hagrid/dummynum.py -hagrid/exceptions.py -hagrid/file.py -hagrid/git_check.py -hagrid/grammar.py -hagrid/land.py -hagrid/launch.py -hagrid/lib.py -hagrid/manifest_template.yml -hagrid/mode.py -hagrid/names.py -hagrid/nb_output.py -hagrid/orchestra.py -hagrid/parse_template.py -hagrid/quickstart_ui.py -hagrid/rand_sec.py -hagrid/stable_version.py -hagrid/style.py -hagrid/util.py -hagrid/version.py -hagrid/win_bootstrap.py -hagrid/wizard_ui.py -hagrid.egg-info/PKG-INFO -hagrid.egg-info/SOURCES.txt -hagrid.egg-info/dependency_links.txt -hagrid.egg-info/entry_points.txt -hagrid.egg-info/requires.txt -hagrid.egg-info/top_level.txt -tests/__init__.py -tests/hagrid/__init__.py -tests/hagrid/cli_test.py \ No newline at end of file diff --git a/packages/hagrid/hagrid.egg-info/dependency_links.txt b/packages/hagrid/hagrid.egg-info/dependency_links.txt deleted file mode 100644 index 8b137891791..00000000000 --- a/packages/hagrid/hagrid.egg-info/dependency_links.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/packages/hagrid/hagrid.egg-info/entry_points.txt b/packages/hagrid/hagrid.egg-info/entry_points.txt deleted file mode 100644 index 03aaa03877c..00000000000 --- a/packages/hagrid/hagrid.egg-info/entry_points.txt +++ /dev/null @@ -1,2 +0,0 @@ -[console_scripts] -hagrid = hagrid.cli:cli diff --git a/packages/hagrid/hagrid.egg-info/requires.txt b/packages/hagrid/hagrid.egg-info/requires.txt deleted file mode 100644 index 870f1181403..00000000000 --- a/packages/hagrid/hagrid.egg-info/requires.txt +++ /dev/null @@ -1,19 +0,0 @@ -ascii_magic -click>=8.1.7 -cryptography>=41.0.4 -gitpython -jinja2 -names -packaging>=23.0 -paramiko -pyOpenSSL>=23.2.0 -requests -rich -setuptools -virtualenv-api -virtualenv -PyYAML -tqdm -gevent<=23.9.1,>=22.10.2 -ansible -ansible-core diff --git a/packages/hagrid/hagrid.egg-info/top_level.txt b/packages/hagrid/hagrid.egg-info/top_level.txt deleted file mode 100644 index de7eb847bd2..00000000000 --- a/packages/hagrid/hagrid.egg-info/top_level.txt +++ /dev/null @@ -1,2 +0,0 @@ -hagrid -tests