{"id":498,"date":"2025-05-19T11:33:41","date_gmt":"2025-05-19T11:33:41","guid":{"rendered":"https:\/\/buhave.com\/courses\/?p=498"},"modified":"2025-05-20T12:57:18","modified_gmt":"2025-05-20T12:57:18","slug":"working-with-external-libraries","status":"publish","type":"post","link":"https:\/\/buhave.com\/courses\/python\/working-with-external-libraries\/","title":{"rendered":"Working with External Libraries"},"content":{"rendered":"<h2>Requests, Pandas, Matplotlib, etc.<span style=\"font-weight: 400\"><br \/>\n<\/span><\/h2>\n<p><strong>Popular Python Libraries \u2013 Detailed Overview<\/strong><\/p>\n<p>Python has a rich ecosystem of libraries that simplify everything from web requests to data manipulation and visualization. Here&#8217;s a breakdown of some of the most widely used libraries: requests, pandas, matplotlib, and more.<\/p>\n<h3>1. Requests \u2013 HTTP for Humans<\/h3>\n<p>The requests library is a simple, elegant way to send HTTP\/1.1 requests using Python. It abstracts away complex details of making requests and handling responses.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<p style=\"text-align: center\"><em>import requests<\/em><\/p>\n<p style=\"text-align: center\"><em>response = requests.get(&#8220;https:\/\/api.github.com&#8221;)<\/em><br \/>\n<em>print(response.status_code)<\/em><br \/>\n<em>print(response.json())<\/em><\/p>\n<p><strong>Common Features:<\/strong><\/p>\n<ul>\n<li>GET, POST, PUT, DELETE requests<\/li>\n<li>Timeout, retries, and session management<\/li>\n<li>Handling JSON, headers, and authentication<\/li>\n<\/ul>\n<h3>2. Pandas \u2013 Data Analysis &amp; Manipulation<\/h3>\n<p>pandas is a powerful library for working with structured data like CSVs, Excel files, SQL results, or APIs. It introduces two main data types: Series and DataFrame.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<p style=\"text-align: center\"><em>import pandas as pd<\/em><\/p>\n<p style=\"text-align: center\"><em>df = pd.read_csv(&#8220;data.csv&#8221;)<\/em><br \/>\n<em>print(df.head())<\/em><\/p>\n<p><strong>Common Features:<\/strong><\/p>\n<ul>\n<li>Data filtering, grouping, and aggregation<\/li>\n<li>Handling missing data<\/li>\n<li>Merging and reshaping datasets<\/li>\n<li>Time series and categorical data support<\/li>\n<\/ul>\n<h3>3. Matplotlib \u2013 Data Visualization<\/h3>\n<p>matplotlib is a plotting library for creating static, animated, and interactive visualizations in Python.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<p style=\"text-align: center\"><em>import matplotlib.pyplot as plt<\/em><\/p>\n<p style=\"text-align: center\"><em>x = [1, 2, 3, 4]<\/em><br \/>\n<em>y = [10, 20, 25, 30]<\/em><\/p>\n<p style=\"text-align: center\"><em>plt.plot(x, y)<\/em><br \/>\n<em>plt.title(&#8220;Simple Plot&#8221;)<\/em><br \/>\n<em>plt.xlabel(&#8220;X Axis&#8221;)<\/em><br \/>\n<em>plt.ylabel(&#8220;Y Axis&#8221;)<\/em><br \/>\n<em>plt.show()<\/em><\/p>\n<p><strong>Common Features:<\/strong><\/p>\n<ul>\n<li>Line, bar, scatter, pie charts<\/li>\n<li>Subplots and figure styling<\/li>\n<li>Exporting plots as images<\/li>\n<li>Works well with pandas data<\/li>\n<\/ul>\n<h3>4. Numpy \u2013 Numerical Computing<\/h3>\n<p>numpy provides efficient arrays, mathematical functions, and linear algebra tools, forming the backbone of scientific computing in Python.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<p style=\"text-align: center\"><em>import numpy as np<\/em><\/p>\n<p style=\"text-align: center\"><em>arr = np.array([1, 2, 3])<\/em><br \/>\n<em>print(arr.mean())<\/em><\/p>\n<h3>5. Scikit-learn \u2013 Machine Learning<\/h3>\n<p>A go-to ML library offering tools for data preprocessing, classification, regression, clustering, and model evaluation.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<p style=\"text-align: center\"><em>from sklearn.linear_model import LinearRegression<\/em><br \/>\n<em>model = LinearRegression()<\/em><br \/>\n<em>model.fit(X_train, y_train)<\/em><\/p>\n<h3>6. Pytest \u2013 Testing Framework<\/h3>\n<p>pytest is a robust and scalable testing framework for writing simple to complex unit tests.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<p style=\"text-align: center\"><em>def test_add():<\/em><br \/>\n<em>assert 1 + 2 == 3<\/em><\/p>\n<p><strong>Summary Table:<\/strong><\/p>\n<table style=\"border-collapse: collapse;width: 100%;font-family: Arial, sans-serif;margin: 15px 0\" border=\"1\" cellspacing=\"0\" cellpadding=\"8\">\n<thead>\n<tr>\n<th style=\"padding: 12px;text-align: left;border-bottom: 2px solid #000\"><strong>Library<\/strong><\/th>\n<th style=\"padding: 12px;text-align: left;border-bottom: 2px solid #000\"><strong>Use Case<\/strong><\/th>\n<th style=\"padding: 12px;text-align: left;border-bottom: 2px solid #000\"><strong>Highlights<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding: 12px;border-bottom: 1px solid #000\"><code>requests<\/code><\/td>\n<td style=\"padding: 12px;border-bottom: 1px solid #000\">HTTP\/API requests<\/td>\n<td style=\"padding: 12px;border-bottom: 1px solid #000\">Simple syntax, human-friendly API<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 12px;border-bottom: 1px solid #000\"><code>pandas<\/code><\/td>\n<td style=\"padding: 12px;border-bottom: 1px solid #000\">Data manipulation &amp; analysis<\/td>\n<td style=\"padding: 12px;border-bottom: 1px solid #000\">DataFrame structure, powerful data operations<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 12px;border-bottom: 1px solid #000\"><code>matplotlib<\/code><\/td>\n<td style=\"padding: 12px;border-bottom: 1px solid #000\">Data visualization<\/td>\n<td style=\"padding: 12px;border-bottom: 1px solid #000\">Highly customizable, publication-quality plots<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 12px;border-bottom: 1px solid #000\"><code>numpy<\/code><\/td>\n<td style=\"padding: 12px;border-bottom: 1px solid #000\">Numerical computing<\/td>\n<td style=\"padding: 12px;border-bottom: 1px solid #000\">Fast array operations, linear algebra<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 12px;border-bottom: 1px solid #000\"><code>scikit-learn<\/code><\/td>\n<td style=\"padding: 12px;border-bottom: 1px solid #000\">Machine learning<\/td>\n<td style=\"padding: 12px;border-bottom: 1px solid #000\">Prebuilt models, data preprocessing<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 12px\"><code>pytest<\/code><\/td>\n<td style=\"padding: 12px\">Testing framework<\/td>\n<td style=\"padding: 12px\">Fixtures, parameterized tests, rich plugin ecosystem<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Installing packages with pip<\/h2>\n<p><strong>Installing Packages with pip \u2013 Detailed Guide<\/strong><\/p>\n<p>pip is Python\u2019s package installer, allowing you to download, install, upgrade, and manage libraries and tools from the Python Package Index (PyPI). It\u2019s a fundamental tool for working with third-party packages in Python.<\/p>\n<p><strong>Basic Usage<\/strong><\/p>\n<h3>Installing a Package<\/h3>\n<p style=\"text-align: center\"><em>pip install package_name<\/em><\/p>\n<p><strong>Example:<\/strong><\/p>\n<p style=\"text-align: center\"><em>pip install requests<\/em><\/p>\n<p>This command fetches the package from PyPI and installs it into your current environment.<\/p>\n<h3>Installing Specific Versions<\/h3>\n<p><strong>You can install a particular version like this:<\/strong><\/p>\n<p style=\"text-align: center\"><em>pip install pandas==1.5.3<\/em><\/p>\n<p>Or specify a range:<\/p>\n<p style=\"text-align: center\"><em>pip install numpy&gt;=1.21,&lt;1.24<\/em><\/p>\n<p><strong>Upgrading a Package<\/strong><\/p>\n<p style=\"text-align: center\"><em>pip install &#8211;upgrade matplotlib<\/em><\/p>\n<p><strong>Uninstalling a Package<\/strong><\/p>\n<p style=\"text-align: center\"><em>pip uninstall package_name<\/em><\/p>\n<p><strong>Viewing Installed Packages<\/strong><\/p>\n<p style=\"text-align: center\"><em>pip list<\/em><\/p>\n<p>You can also check outdated packages:<\/p>\n<p style=\"text-align: center\"><em>pip list &#8211;outdated<\/em><\/p>\n<p><strong>Installing from a requirements.txt File<\/strong><\/p>\n<ul>\n<li>This file lists all dependencies for a project.<\/li>\n<\/ul>\n<p><strong>Example content of requirements.txt:<\/strong><\/p>\n<p style=\"text-align: center\"><em>requests==2.31.0<\/em><br \/>\n<em>pandas&gt;=1.5<\/em><br \/>\n<em>matplotlib<\/em><\/p>\n<p>Install everything with:<\/p>\n<p style=\"text-align: center\"><em>pip install -r requirements.txt<\/em><\/p>\n<p><strong>Installing from a Local File or URL<\/strong><\/p>\n<p><strong>Install a .whl file:<\/strong><\/p>\n<p style=\"text-align: center\"><em>pip install some_package-1.0-py3-none-any.whl<\/em><\/p>\n<p><strong>Install directly from a GitHub repository:<\/strong><\/p>\n<p style=\"text-align: center\"><em>pip install git+https:\/\/github.com\/psf\/requests.git<\/em><\/p>\n<p><strong>Notes on Virtual Environments<\/strong><\/p>\n<p>To avoid conflicts between projects, it&#8217;s best to install packages inside a virtual environment:<\/p>\n<p style=\"text-align: center\"><em>python -m venv env<\/em><br \/>\n<em>source env\/bin\/activate # On Windows use: env\\Scripts\\activate<\/em><br \/>\n<em>pip install flask<\/em><\/p>\n<p><strong>Summary:<\/strong><\/p>\n<table style=\"border-collapse: collapse;width: 100%;font-family: Arial, sans-serif;margin: 15px 0\" border=\"1\" cellspacing=\"0\" cellpadding=\"8\">\n<thead>\n<tr>\n<th style=\"padding: 12px;text-align: left;border-bottom: 2px solid #000\"><strong>Task<\/strong><\/th>\n<th style=\"padding: 12px;text-align: left;border-bottom: 2px solid #000\"><strong>Command Example<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding: 12px;border-bottom: 1px solid #000\">Install a package<\/td>\n<td style=\"padding: 12px;border-bottom: 1px solid #000\"><code>pip install requests<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 12px;border-bottom: 1px solid #000\">Install specific version<\/td>\n<td style=\"padding: 12px;border-bottom: 1px solid #000\"><code>pip install pandas==1.5.3<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 12px;border-bottom: 1px solid #000\">Upgrade package<\/td>\n<td style=\"padding: 12px;border-bottom: 1px solid #000\"><code>pip install --upgrade numpy<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 12px;border-bottom: 1px solid #000\">Uninstall package<\/td>\n<td style=\"padding: 12px;border-bottom: 1px solid #000\"><code>pip uninstall matplotlib<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 12px;border-bottom: 1px solid #000\">List installed packages<\/td>\n<td style=\"padding: 12px;border-bottom: 1px solid #000\"><code>pip list<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 12px\">Install from requirements file<\/td>\n<td style=\"padding: 12px\"><code>pip install -r requirements.txt<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Simple API Consumption Example<\/h2>\n<p>Simple API Consumption in Python \u2013 Detailed Example Using requests<br \/>\nConsuming an API means making HTTP requests to an external service to fetch or send data. Python\u2019s requests library makes this easy and intuitive. Let\u2019s walk through a complete, beginner-friendly example of calling a public API.<\/p>\n<p><strong>Goal<\/strong><\/p>\n<p>We&#8217;ll use the JSONPlaceholder API, a free fake REST API for testing and prototyping.<\/p>\n<p>Endpoint:<br \/>\nhttps:\/\/jsonplaceholder.typicode.com\/posts<\/p>\n<h3>Step 1: Install requests (if you haven&#8217;t)<\/h3>\n<p style=\"text-align: center\"><em>pip install requests<\/em><\/p>\n<h3>Step 2: Make a Simple GET Request<\/h3>\n<p style=\"text-align: center\"><em>import requests<\/em><\/p>\n<p style=\"text-align: center\"><em># Define the endpoint<\/em><br \/>\n<em>url = &#8220;https:\/\/jsonplaceholder.typicode.com\/posts&#8221;<\/em><\/p>\n<p style=\"text-align: center\"><em># Send GET request<\/em><br \/>\n<em>response = requests.get(url)<\/em><\/p>\n<p style=\"text-align: center\"><em># Check the status<\/em><br \/>\n<em>print(&#8220;Status Code:&#8221;, response.status_code)<\/em><\/p>\n<p style=\"text-align: center\"><em># Parse JSON response<\/em><br \/>\n<em>data = response.json()<\/em><\/p>\n<p style=\"text-align: center\"><em># Show the first post<\/em><br \/>\n<em>print(&#8220;First Post:&#8221;)<\/em><br \/>\n<em>print(data[0])<\/em><\/p>\n<p><strong>Output Sample<\/strong><\/p>\n<p style=\"text-align: center\"><em>Status Code: 200<\/em><br \/>\n<em>First Post:<\/em><br \/>\n<em>{&#8216;userId&#8217;: 1, &#8216;id&#8217;: 1, &#8216;title&#8217;: &#8216;&#8230;&#8217;, &#8216;body&#8217;: &#8216;&#8230;&#8217;}<\/em><\/p>\n<h3>Step 3: Accessing Specific Data<\/h3>\n<p style=\"text-align: center\"><em>for post in data[:5]: # Print the first 5 posts<\/em><br \/>\n<em>print(f&#8221;Post {post[&#8216;id&#8217;]}: {post[&#8216;title&#8217;]}&#8221;)<\/em><\/p>\n<h3>Step 4: Making a POST Request (Sending Data)<\/h3>\n<p style=\"text-align: center\"><em>new_post = {<\/em><br \/>\n<em>&#8220;title&#8221;: &#8220;ChatGPT is awesome!&#8221;,<\/em><br \/>\n<em>&#8220;body&#8221;: &#8220;This post was made using the requests library.&#8221;,<\/em><br \/>\n<em>&#8220;userId&#8221;: 1<\/em><br \/>\n<em>}<\/em><\/p>\n<p style=\"text-align: center\"><em>response = requests.post(url, json=new_post)<\/em><br \/>\n<em>print(&#8220;New Post Response:&#8221;, response.status_code)<\/em><br \/>\n<em>print(&#8220;Response Body:&#8221;, response.json())<\/em><\/p>\n<p><strong>Error Handling (Best Practice)<\/strong><\/p>\n<p style=\"text-align: center\"><em>try:<\/em><br \/>\n<em>response = requests.get(url, timeout=5)<\/em><br \/>\n<em>response.raise_for_status() # Raises HTTPError for bad status codes<\/em><br \/>\n<em>posts = response.json()<\/em><br \/>\n<em>except requests.exceptions.RequestException as e:<\/em><br \/>\n<em>print(&#8220;API request failed:&#8221;, e)<\/em><\/p>\n<p><strong>Summary:<\/strong><\/p>\n<table style=\"border-collapse: collapse;width: 100%;font-family: Arial, sans-serif;margin: 15px 0\" border=\"1\" cellspacing=\"0\" cellpadding=\"8\">\n<thead>\n<tr>\n<th style=\"padding: 12px;text-align: left;border-bottom: 2px solid #000\">Task<\/th>\n<th style=\"padding: 12px;text-align: left;border-bottom: 2px solid #000\">Code\/Concept<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding: 12px;border-bottom: 1px solid #000\">Send GET request<\/td>\n<td style=\"padding: 12px;border-bottom: 1px solid #000\"><code>response = requests.get('https:\/\/api.example.com\/data')<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 12px;border-bottom: 1px solid #000\">Parse JSON response<\/td>\n<td style=\"padding: 12px;border-bottom: 1px solid #000\"><code>data = response.json()<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 12px;border-bottom: 1px solid #000\">Send POST request<\/td>\n<td style=\"padding: 12px;border-bottom: 1px solid #000\"><code>response = requests.post('https:\/\/api.example.com\/submit', json={'key': 'value'})<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 12px;border-bottom: 1px solid #000\">Error handling<\/td>\n<td style=\"padding: 12px;border-bottom: 1px solid #000\"><code>try:<br \/>\nresponse.raise_for_status()<br \/>\nexcept requests.exceptions.HTTPError as err:<br \/>\nprint(f\"Error: {err}\")<br \/>\n<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 12px\">Practice with real APIs<\/td>\n<td style=\"padding: 12px\">GitHub API, OpenWeatherMap,<br \/>\nJSONPlaceholder, SpaceX API, etc.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Want to try this with a real-world API like OpenWeatherMap or GitHub? I can show you how to add authentication headers or work with query parameters too!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Requests, Pandas, Matplotlib, etc. Popular Python Libraries \u2013 Detailed Overview Python has a rich ecosystem of libraries that simplify everything from web requests to data manipulation and visualization. Here&#8217;s a breakdown of some of the most widely used libraries: requests, pandas, matplotlib, and more. 1.<\/p>\n","protected":false},"author":1,"featured_media":499,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-498","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Working with External Libraries - Python Course<\/title>\n<meta name=\"description\" content=\"Working with external libraries greatly boosts Python by adding powerful tools for APIs, data analysis, automation, and visualization.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/buhave.com\/courses\/python\/working-with-external-libraries\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Working with External Libraries - Python Course\" \/>\n<meta property=\"og:description\" content=\"Working with external libraries greatly boosts Python by adding powerful tools for APIs, data analysis, automation, and visualization.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/buhave.com\/courses\/python\/working-with-external-libraries\/\" \/>\n<meta property=\"og:site_name\" content=\"BUHAVE\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/BeYouHave\/\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/naveedsafdarawan\/\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-19T11:33:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-20T12:57:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/buhave.com\/courses\/wp-content\/uploads\/2025\/04\/Working-with-External-Libraries.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Naveed Safdar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Naveed Safdar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/buhave.com\\\/courses\\\/python\\\/working-with-external-libraries\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/buhave.com\\\/courses\\\/python\\\/working-with-external-libraries\\\/\"},\"author\":{\"name\":\"Naveed Safdar\",\"@id\":\"https:\\\/\\\/buhave.com\\\/courses\\\/#\\\/schema\\\/person\\\/04fe0254e118521c9fbb3da39de5acca\"},\"headline\":\"Working with External Libraries\",\"datePublished\":\"2025-05-19T11:33:41+00:00\",\"dateModified\":\"2025-05-20T12:57:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/buhave.com\\\/courses\\\/python\\\/working-with-external-libraries\\\/\"},\"wordCount\":910,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/buhave.com\\\/courses\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/buhave.com\\\/courses\\\/python\\\/working-with-external-libraries\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/buhave.com\\\/courses\\\/wp-content\\\/uploads\\\/2025\\\/04\\\/Working-with-External-Libraries.webp\",\"articleSection\":[\"Python Course\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/buhave.com\\\/courses\\\/python\\\/working-with-external-libraries\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/buhave.com\\\/courses\\\/python\\\/working-with-external-libraries\\\/\",\"url\":\"https:\\\/\\\/buhave.com\\\/courses\\\/python\\\/working-with-external-libraries\\\/\",\"name\":\"Working with External Libraries - Python Course\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/buhave.com\\\/courses\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/buhave.com\\\/courses\\\/python\\\/working-with-external-libraries\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/buhave.com\\\/courses\\\/python\\\/working-with-external-libraries\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/buhave.com\\\/courses\\\/wp-content\\\/uploads\\\/2025\\\/04\\\/Working-with-External-Libraries.webp\",\"datePublished\":\"2025-05-19T11:33:41+00:00\",\"dateModified\":\"2025-05-20T12:57:18+00:00\",\"description\":\"Working with external libraries greatly boosts Python by adding powerful tools for APIs, data analysis, automation, and visualization.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/buhave.com\\\/courses\\\/python\\\/working-with-external-libraries\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/buhave.com\\\/courses\\\/python\\\/working-with-external-libraries\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/buhave.com\\\/courses\\\/python\\\/working-with-external-libraries\\\/#primaryimage\",\"url\":\"https:\\\/\\\/buhave.com\\\/courses\\\/wp-content\\\/uploads\\\/2025\\\/04\\\/Working-with-External-Libraries.webp\",\"contentUrl\":\"https:\\\/\\\/buhave.com\\\/courses\\\/wp-content\\\/uploads\\\/2025\\\/04\\\/Working-with-External-Libraries.webp\",\"width\":1200,\"height\":628,\"caption\":\"Working with External Libraries\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/buhave.com\\\/courses\\\/python\\\/working-with-external-libraries\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Courses\",\"item\":\"https:\\\/\\\/buhave.com\\\/courses\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python Course\",\"item\":\"https:\\\/\\\/buhave.com\\\/courses\\\/learn\\\/python\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Working with External Libraries\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/buhave.com\\\/courses\\\/#website\",\"url\":\"https:\\\/\\\/buhave.com\\\/courses\\\/\",\"name\":\"BUHAVE\",\"description\":\"Courses - Learn Online for Free\",\"publisher\":{\"@id\":\"https:\\\/\\\/buhave.com\\\/courses\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/buhave.com\\\/courses\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/buhave.com\\\/courses\\\/#organization\",\"name\":\"BUHAVE\",\"url\":\"https:\\\/\\\/buhave.com\\\/courses\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/buhave.com\\\/courses\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/buhave.com\\\/courses\\\/wp-content\\\/uploads\\\/2025\\\/03\\\/buhave-course.webp\",\"contentUrl\":\"https:\\\/\\\/buhave.com\\\/courses\\\/wp-content\\\/uploads\\\/2025\\\/03\\\/buhave-course.webp\",\"width\":375,\"height\":75,\"caption\":\"BUHAVE\"},\"image\":{\"@id\":\"https:\\\/\\\/buhave.com\\\/courses\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/BeYouHave\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/buhave\",\"https:\\\/\\\/www.youtube.com\\\/@buhave\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/buhave.com\\\/courses\\\/#\\\/schema\\\/person\\\/04fe0254e118521c9fbb3da39de5acca\",\"name\":\"Naveed Safdar\",\"description\":\"I\u2019m Naveed Safdar - SEO Manager with over 10 years of experience in SEO and Digital Marketing. I\u2019ve had the privilege of working with leading national and international companies including Grafdom, PakWheels, Systems Limited, Confiz, Educative, and Dubizzle Labs. My expertise spans technical SEO, content strategy, organic growth, and performance analytics - helping businesses improve visibility, traffic, and ROI.\",\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/in\\\/naveedsafdar\\\/\",\"https:\\\/\\\/www.facebook.com\\\/naveedsafdarawan\\\/\",\"https:\\\/\\\/www.youtube.com\\\/@naveedsafdar\"],\"url\":\"https:\\\/\\\/buhave.com\\\/courses\\\/author\\\/naveed-safdar\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Working with External Libraries - Python Course","description":"Working with external libraries greatly boosts Python by adding powerful tools for APIs, data analysis, automation, and visualization.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/buhave.com\/courses\/python\/working-with-external-libraries\/","og_locale":"en_US","og_type":"article","og_title":"Working with External Libraries - Python Course","og_description":"Working with external libraries greatly boosts Python by adding powerful tools for APIs, data analysis, automation, and visualization.","og_url":"https:\/\/buhave.com\/courses\/python\/working-with-external-libraries\/","og_site_name":"BUHAVE","article_publisher":"https:\/\/www.facebook.com\/BeYouHave\/","article_author":"https:\/\/www.facebook.com\/naveedsafdarawan\/","article_published_time":"2025-05-19T11:33:41+00:00","article_modified_time":"2025-05-20T12:57:18+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/buhave.com\/courses\/wp-content\/uploads\/2025\/04\/Working-with-External-Libraries.webp","type":"image\/webp"}],"author":"Naveed Safdar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Naveed Safdar","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/buhave.com\/courses\/python\/working-with-external-libraries\/#article","isPartOf":{"@id":"https:\/\/buhave.com\/courses\/python\/working-with-external-libraries\/"},"author":{"name":"Naveed Safdar","@id":"https:\/\/buhave.com\/courses\/#\/schema\/person\/04fe0254e118521c9fbb3da39de5acca"},"headline":"Working with External Libraries","datePublished":"2025-05-19T11:33:41+00:00","dateModified":"2025-05-20T12:57:18+00:00","mainEntityOfPage":{"@id":"https:\/\/buhave.com\/courses\/python\/working-with-external-libraries\/"},"wordCount":910,"commentCount":0,"publisher":{"@id":"https:\/\/buhave.com\/courses\/#organization"},"image":{"@id":"https:\/\/buhave.com\/courses\/python\/working-with-external-libraries\/#primaryimage"},"thumbnailUrl":"https:\/\/buhave.com\/courses\/wp-content\/uploads\/2025\/04\/Working-with-External-Libraries.webp","articleSection":["Python Course"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/buhave.com\/courses\/python\/working-with-external-libraries\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/buhave.com\/courses\/python\/working-with-external-libraries\/","url":"https:\/\/buhave.com\/courses\/python\/working-with-external-libraries\/","name":"Working with External Libraries - Python Course","isPartOf":{"@id":"https:\/\/buhave.com\/courses\/#website"},"primaryImageOfPage":{"@id":"https:\/\/buhave.com\/courses\/python\/working-with-external-libraries\/#primaryimage"},"image":{"@id":"https:\/\/buhave.com\/courses\/python\/working-with-external-libraries\/#primaryimage"},"thumbnailUrl":"https:\/\/buhave.com\/courses\/wp-content\/uploads\/2025\/04\/Working-with-External-Libraries.webp","datePublished":"2025-05-19T11:33:41+00:00","dateModified":"2025-05-20T12:57:18+00:00","description":"Working with external libraries greatly boosts Python by adding powerful tools for APIs, data analysis, automation, and visualization.","breadcrumb":{"@id":"https:\/\/buhave.com\/courses\/python\/working-with-external-libraries\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/buhave.com\/courses\/python\/working-with-external-libraries\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/buhave.com\/courses\/python\/working-with-external-libraries\/#primaryimage","url":"https:\/\/buhave.com\/courses\/wp-content\/uploads\/2025\/04\/Working-with-External-Libraries.webp","contentUrl":"https:\/\/buhave.com\/courses\/wp-content\/uploads\/2025\/04\/Working-with-External-Libraries.webp","width":1200,"height":628,"caption":"Working with External Libraries"},{"@type":"BreadcrumbList","@id":"https:\/\/buhave.com\/courses\/python\/working-with-external-libraries\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Courses","item":"https:\/\/buhave.com\/courses\/"},{"@type":"ListItem","position":2,"name":"Python Course","item":"https:\/\/buhave.com\/courses\/learn\/python\/"},{"@type":"ListItem","position":3,"name":"Working with External Libraries"}]},{"@type":"WebSite","@id":"https:\/\/buhave.com\/courses\/#website","url":"https:\/\/buhave.com\/courses\/","name":"BUHAVE","description":"Courses - Learn Online for Free","publisher":{"@id":"https:\/\/buhave.com\/courses\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/buhave.com\/courses\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/buhave.com\/courses\/#organization","name":"BUHAVE","url":"https:\/\/buhave.com\/courses\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/buhave.com\/courses\/#\/schema\/logo\/image\/","url":"https:\/\/buhave.com\/courses\/wp-content\/uploads\/2025\/03\/buhave-course.webp","contentUrl":"https:\/\/buhave.com\/courses\/wp-content\/uploads\/2025\/03\/buhave-course.webp","width":375,"height":75,"caption":"BUHAVE"},"image":{"@id":"https:\/\/buhave.com\/courses\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/BeYouHave\/","https:\/\/www.linkedin.com\/company\/buhave","https:\/\/www.youtube.com\/@buhave"]},{"@type":"Person","@id":"https:\/\/buhave.com\/courses\/#\/schema\/person\/04fe0254e118521c9fbb3da39de5acca","name":"Naveed Safdar","description":"I\u2019m Naveed Safdar - SEO Manager with over 10 years of experience in SEO and Digital Marketing. I\u2019ve had the privilege of working with leading national and international companies including Grafdom, PakWheels, Systems Limited, Confiz, Educative, and Dubizzle Labs. My expertise spans technical SEO, content strategy, organic growth, and performance analytics - helping businesses improve visibility, traffic, and ROI.","sameAs":["https:\/\/www.linkedin.com\/in\/naveedsafdar\/","https:\/\/www.facebook.com\/naveedsafdarawan\/","https:\/\/www.youtube.com\/@naveedsafdar"],"url":"https:\/\/buhave.com\/courses\/author\/naveed-safdar\/"}]}},"_links":{"self":[{"href":"https:\/\/buhave.com\/courses\/wp-json\/wp\/v2\/posts\/498","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buhave.com\/courses\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buhave.com\/courses\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buhave.com\/courses\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/buhave.com\/courses\/wp-json\/wp\/v2\/comments?post=498"}],"version-history":[{"count":2,"href":"https:\/\/buhave.com\/courses\/wp-json\/wp\/v2\/posts\/498\/revisions"}],"predecessor-version":[{"id":763,"href":"https:\/\/buhave.com\/courses\/wp-json\/wp\/v2\/posts\/498\/revisions\/763"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buhave.com\/courses\/wp-json\/wp\/v2\/media\/499"}],"wp:attachment":[{"href":"https:\/\/buhave.com\/courses\/wp-json\/wp\/v2\/media?parent=498"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buhave.com\/courses\/wp-json\/wp\/v2\/categories?post=498"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buhave.com\/courses\/wp-json\/wp\/v2\/tags?post=498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}