|
1 | 1 | { |
2 | | - "cells": [], |
| 2 | + "cells": [ |
| 3 | + { |
| 4 | + "cell_type": "code", |
| 5 | + "execution_count": 1, |
| 6 | + "metadata": {}, |
| 7 | + "outputs": [ |
| 8 | + { |
| 9 | + "name": "stdout", |
| 10 | + "output_type": "stream", |
| 11 | + "text": [ |
| 12 | + "Defaulting to user installation because normal site-packages is not writeable\n", |
| 13 | + "Collecting api-to-dataframe\n", |
| 14 | + " Downloading api_to_dataframe-0.0.3-py3-none-any.whl (4.0 kB)\n", |
| 15 | + "Collecting coverage<8.0.0,>=7.5.3\n", |
| 16 | + " Using cached coverage-7.5.3-cp39-cp39-macosx_10_9_x86_64.whl (204 kB)\n", |
| 17 | + "Collecting pytest<9.0.0,>=8.2.2\n", |
| 18 | + " Downloading pytest-8.2.2-py3-none-any.whl (339 kB)\n", |
| 19 | + "\u001b[K |████████████████████████████████| 339 kB 7.5 MB/s eta 0:00:01\n", |
| 20 | + "\u001b[?25hCollecting tomli>=1\n", |
| 21 | + " Using cached tomli-2.0.1-py3-none-any.whl (12 kB)\n", |
| 22 | + "Requirement already satisfied: exceptiongroup>=1.0.0rc8 in /Users/ivsouza/Library/Python/3.9/lib/python/site-packages (from pytest<9.0.0,>=8.2.2->api-to-dataframe) (1.2.0)\n", |
| 23 | + "Requirement already satisfied: packaging in /Users/ivsouza/Library/Python/3.9/lib/python/site-packages (from pytest<9.0.0,>=8.2.2->api-to-dataframe) (23.2)\n", |
| 24 | + "Collecting iniconfig\n", |
| 25 | + " Using cached iniconfig-2.0.0-py3-none-any.whl (5.9 kB)\n", |
| 26 | + "Collecting pluggy<2.0,>=1.5\n", |
| 27 | + " Using cached pluggy-1.5.0-py3-none-any.whl (20 kB)\n", |
| 28 | + "Installing collected packages: tomli, pluggy, iniconfig, pytest, coverage, api-to-dataframe\n", |
| 29 | + "Successfully installed api-to-dataframe-0.0.3 coverage-7.5.3 iniconfig-2.0.0 pluggy-1.5.0 pytest-8.2.2 tomli-2.0.1\n", |
| 30 | + "\u001b[33mWARNING: You are using pip version 21.2.4; however, version 24.0 is available.\n", |
| 31 | + "You should consider upgrading via the '/Library/Developer/CommandLineTools/usr/bin/python3 -m pip install --upgrade pip' command.\u001b[0m\n", |
| 32 | + "Note: you may need to restart the kernel to use updated packages.\n" |
| 33 | + ] |
| 34 | + } |
| 35 | + ], |
| 36 | + "source": [ |
| 37 | + "pip install api-to-dataframe" |
| 38 | + ] |
| 39 | + }, |
| 40 | + { |
| 41 | + "cell_type": "code", |
| 42 | + "execution_count": 2, |
| 43 | + "metadata": {}, |
| 44 | + "outputs": [ |
| 45 | + { |
| 46 | + "name": "stdout", |
| 47 | + "output_type": "stream", |
| 48 | + "text": [ |
| 49 | + "Defaulting to user installation because normal site-packages is not writeable\n", |
| 50 | + "\u001b[31mERROR: You must give at least one requirement to install (see \"pip help install\")\u001b[0m\n", |
| 51 | + "\u001b[33mWARNING: You are using pip version 21.2.4; however, version 24.0 is available.\n", |
| 52 | + "You should consider upgrading via the '/Library/Developer/CommandLineTools/usr/bin/python3 -m pip install --upgrade pip' command.\u001b[0m\n", |
| 53 | + "Note: you may need to restart the kernel to use updated packages.\n" |
| 54 | + ] |
| 55 | + } |
| 56 | + ], |
| 57 | + "source": [ |
| 58 | + "pip install --upgrade " |
| 59 | + ] |
| 60 | + }, |
| 61 | + { |
| 62 | + "cell_type": "code", |
| 63 | + "execution_count": 10, |
| 64 | + "metadata": {}, |
| 65 | + "outputs": [ |
| 66 | + { |
| 67 | + "ename": "AttributeError", |
| 68 | + "evalue": "'ApiToDataframe' object has no attribute 'name'", |
| 69 | + "output_type": "error", |
| 70 | + "traceback": [ |
| 71 | + "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", |
| 72 | + "\u001b[0;31mAttributeError\u001b[0m Traceback (most recent call last)", |
| 73 | + "Cell \u001b[0;32mIn[10], line 5\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mapi_to_dataframe\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m ApiToDataframe\n\u001b[1;32m 3\u001b[0m new \u001b[38;5;241m=\u001b[39m ApiToDataframe\u001b[38;5;241m.\u001b[39mApiToDataframe(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mIvanildo\u001b[39m\u001b[38;5;124m\"\u001b[39m)\n\u001b[0;32m----> 5\u001b[0m \u001b[43mnew\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msay_hello\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n", |
| 74 | + "File \u001b[0;32m~/Library/Python/3.9/lib/python/site-packages/api_to_dataframe/run.py:6\u001b[0m, in \u001b[0;36mApiToDataframe.say_hello\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 5\u001b[0m \u001b[38;5;28;01mdef\u001b[39;00m \u001b[38;5;21msay_hello\u001b[39m(\u001b[38;5;28mself\u001b[39m):\n\u001b[0;32m----> 6\u001b[0m \u001b[38;5;28mprint\u001b[39m(\u001b[38;5;124mf\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mHello \u001b[39m\u001b[38;5;132;01m{\u001b[39;00m\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mname\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m\"\u001b[39m)\n", |
| 75 | + "\u001b[0;31mAttributeError\u001b[0m: 'ApiToDataframe' object has no attribute 'name'" |
| 76 | + ] |
| 77 | + } |
| 78 | + ], |
| 79 | + "source": [ |
| 80 | + "from api_to_dataframe import ApiToDataframe\n", |
| 81 | + "\n", |
| 82 | + "new = ApiToDataframe.ApiToDataframe(\"Ivanildo\")\n", |
| 83 | + "\n", |
| 84 | + "new.say_hello()\n", |
| 85 | + "\n", |
| 86 | + "\n", |
| 87 | + "\n" |
| 88 | + ] |
| 89 | + }, |
| 90 | + { |
| 91 | + "cell_type": "code", |
| 92 | + "execution_count": null, |
| 93 | + "metadata": {}, |
| 94 | + "outputs": [], |
| 95 | + "source": [] |
| 96 | + } |
| 97 | + ], |
3 | 98 | "metadata": { |
4 | 99 | "kernelspec": { |
5 | 100 | "display_name": "awesome-data-ingestion-bT26QLZB-py3.9", |
|
0 commit comments