This repository has been archived by the owner on Jul 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from Azure/Task_Restructure_Pip
Code restructured and pip installation
- Loading branch information
Showing
44 changed files
with
187 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) Microsoft Corporation. All rights reserved. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
|
||
# Azure Data Service Notebook | ||
Azure Data Service Notebook is a set of tool for working with Azure Data Service (including HDInsight, Azure Data Lake, etc) | ||
|
||
|
||
# Feature | ||
Azure Data Service Notebook currently provides a set of magic commands for users to access Azure Data Lake. Available magics are captured in the table below. | ||
|
||
| Commands | Function | | ||
|-----|-----| | ||
|%adl login |Line magic to log in to Azure Data Lake.| | ||
|%adl listaccounts|Line magic to list the Azure Data Lake analytic accounts for current user.| | ||
|%adl listjobs|Line magic to list the Azure Data Lake jobs for a given account.| | ||
|%%adl submitjob|Cell magic to submit a USQL job to ADL cluster.| | ||
|%adl viewjob|Line magic to view job info.| | ||
|%adl liststorefile|Line magic to list the Azure Data Lake store accounts.| | ||
|%adl sample|Line magic to sample a given file, return results as Pandas DataFrame.| | ||
|%adl logout|Line magic to log out.| | ||
|
||
|
||
# Installation | ||
|
||
- Download and Install [python 3.6+](https://www.python.org/downloads/) | ||
- Install jupyter: `pip install jupyter` | ||
- Install azure packages fully : | ||
`pip install azure` | ||
- Or just install the key packages : | ||
- `pip install adla` | ||
- `pip install azure-mgmt-resource` | ||
- `pip install azure-mgmt-datalake-analytics` | ||
- `pip install azure-mgmt-datalake-store` | ||
- `pip install azure-datalake-store` | ||
- Copy the [adlmagic folder](/analytics_notebook/adlmagics) to local box. | ||
|
||
|
||
# Examples | ||
- [adlmagics_demo.ipynb](/analytics_notebook/adlmagics/00_adlmagics_demo.ipynb), demo file of Azure Data Lake job control functions. | ||
|
||
|
||
|
||
# Contributing | ||
|
||
This project welcomes contributions and suggestions. Most contributions require you to agree to a | ||
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us | ||
the rights to use your contribution. For details, visit https://cla.microsoft.com. | ||
|
||
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide | ||
a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions | ||
provided by the bot. You will only need to do this once across all repos using our CLA. | ||
|
||
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). | ||
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or | ||
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from adlmagics.adlmagics_main import AdlMagics | ||
|
||
def load_ipython_extension(ipython): | ||
ipython.register_magics(AdlMagics) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...agics/adla/adla_accounts_listing_magic.py → ...agics/adla/adla_accounts_listing_magic.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
.../magics/adla/adla_job_submission_magic.py → .../magics/adla/adla_job_submission_magic.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ics/magics/adla/adla_job_viewing_magic.py → ...ics/magics/adla/adla_job_viewing_magic.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...cs/magics/adla/adla_jobs_listing_magic.py → ...cs/magics/adla/adla_jobs_listing_magic.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../adlmagics/magics/adla/adla_magic_base.py → .../adlmagics/magics/adla/adla_magic_base.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...agics/adls/adls_accounts_listing_magic.py → ...agics/adls/adls_accounts_listing_magic.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...s/magics/adls/adls_file_sampling_magic.py → ...s/magics/adls/adls_file_sampling_magic.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...s/magics/adls/adls_files_listing_magic.py → ...s/magics/adls/adls_files_listing_magic.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...magics/adls/adls_folders_listing_magic.py → ...magics/adls/adls_folders_listing_magic.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../adlmagics/magics/adls/adls_magic_base.py → .../adlmagics/magics/adls/adls_magic_base.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...lmagics/magics/azure/azure_login_magic.py → ...lmagics/magics/azure/azure_login_magic.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...magics/magics/azure/azure_logout_magic.py → ...magics/magics/azure/azure_logout_magic.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...dlmagics/magics/azure/azure_magic_base.py → ...dlmagics/magics/azure/azure_magic_base.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
ipython>=5.3.0 | ||
notebook>=5.0.0 | ||
ipykernel>=4.6.1 | ||
pandas>=0.20.1 | ||
numpy | ||
adal | ||
azure-mgmt-resource | ||
azure-mgmt-datalake-analytics | ||
azure-mgmt-datalake-store | ||
azure-datalake-store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import setuptools | ||
|
||
name = "adlmagics" | ||
description = "Azure Data Lake management magics for Jupyter Notebook" | ||
long_description = "" | ||
version = "0.0.1" | ||
packages = ["adlmagics", | ||
"adlmagics/magics/adla", | ||
"adlmagics/magics/adls", | ||
"adlmagics/magics/azure", | ||
"adlmagics/magics/session", | ||
"adlmagics/models", | ||
"adlmagics/services"] | ||
author = "Vincent Feng" | ||
author_email = "ivincentfeng@live.com" | ||
url = "https://github.com/Azure/Azure-Data-Service-Notebook" | ||
download_url = "https://github.com/Azure/Azure-Data-Service-Notebook" | ||
license = "MIT" | ||
|
||
with open("README.md", "r") as f: | ||
long_description = f.read() | ||
|
||
setuptools.setup( | ||
name = name, | ||
version = version, | ||
description = description, | ||
long_description = long_description, | ||
long_description_content_type = "text/markdown", | ||
author = author, | ||
author_email = author_email, | ||
url = url, | ||
download_url = download_url, | ||
license = license, | ||
packages = setuptools.find_packages(), | ||
include_package_data = True, | ||
classifiers = [ | ||
"Development Status :: 3 - Alpha", | ||
"Framework :: Jupyter", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: MIT License", | ||
"Natural Language :: English", | ||
"Programming Language :: Python :: 3.6", | ||
"Operating System :: OS Independent"], | ||
install_requires = [ | ||
"ipython>=5.3.0", | ||
"notebook>=5.0.0", | ||
"ipykernel>=4.6.1", | ||
"pandas>=0.20.1", | ||
"numpy", | ||
"adal", | ||
"azure-mgmt-resource", | ||
"azure-mgmt-datalake-analytics", | ||
"azure-mgmt-datalake-store", | ||
"azure-datalake-store"]) |
Empty file.
Oops, something went wrong.