') + ')', 'gi'); if (regex.test(text)) { found = true; var frag = document.createDocumentFragment(); var parts = text.split(regex); parts.forEach(function(part, i) { if (i % 2 === 0) { frag.appendChild(document.createTextNode(part)); } else { var span = document.createElement('span'); span.className = 'userscript-highlight'; span.textContent = part; frag.appendChild(span); } }); node.parentNode.replaceChild(frag, node); } }); } else if (node.nodeType === 1 && node.childNodes) { // element var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT']; if (!skipTags.includes(node.tagName)) { Array.from(node.childNodes).forEach(highlight); } } } highlight(document.body); // Re-highlight on dynamic content var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1 || node.nodeType === 3) highlight(node); }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Strip utm_, fbclid, gclid, etc. from all links on page (function() { var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content', 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid', 'ref', 'ref_src', 'source', 'medium', 'campaign']; function cleanUrl(url) { try { var u = new URL(url, window.location.origin); var changed = false; trackingParams.forEach(function(p) { if (u.searchParams.has(p)) { u.searchParams.delete(p); changed = true; } }); return changed ? u.toString() : url; } catch (e) { return url; } } function cleanLinks() { document.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } cleanLinks(); var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1) { if (node.tagName === 'A') cleanLinks(); node.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Auto-enable theater mode on YouTube (function() { function tryTheater() { var btn = document.querySelector('button[aria-label="Theater mode"], ytd-player #player button[title="Theater mode"]'); if (btn && !btn.classList.contains('activated')) { btn.click(); } } // Try immediately tryTheater(); // Try after navigation (SPA) var lastUrl = location.href; setInterval(function() { if (location.href !== lastUrl) { lastUrl = location.href; setTimeout(tryTheater, 500); } }, 1000); // Also try on player load var observer = new MutationObserver(tryTheater); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Remove or un-stick sticky/fixed headers that block content (function() { function unstick() { document.querySelectorAll('header, nav, [role="banner"], .header, .navbar, .sticky, .fixed-top, [style*="position: fixed"], [style*="position:sticky"]').forEach(function(el) { if (el.style.position === 'fixed' || el.style.position === 'sticky' || getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') { el.style.position = 'static'; el.style.top = 'auto'; el.style.zIndex = 'auto'; } }); } unstick(); var observer = new MutationObserver(unstick); observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] }); })(); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); })(); GitHub - kuritz/azure-sdk-for-python: Microsoft Azure SDK for Python · GitHub
Skip to content

Latest commit

History

1,536 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Microsoft Azure SDK for Python

https://img.shields.io/pypi/v/azure.svg?maxAge=2592000https://img.shields.io/pypi/pyversions/azure.svg?maxAge=2592000https://travis-ci.org/Azure/azure-sdk-for-python.svg?branch=masterhttps://ci.appveyor.com/api/projects/status/m51hrgewcxknxhsd/branch/master?svg=true

This project provides a set of Python packages that make it easy to access the Microsoft Azure components such as ServiceManagement, Storage*, and ServiceBus.

The SDK supports Python 2.7, 3.3, 3.4 and 3.5.

*Looking for the Azure Storage client library? It moved to a new GitHub repository.

See important information if you're currently using this SDK < 1.0 in this issue.

INSTALLATION

The latest recommended release is currently a release candidate, tell this to pip to install it!

The azure bundle meta-package will install all Azure SDKs at once:

  • Use the --pre flag: pip install --pre azure
  • Specify the version: pip install azure==2.0.0rc6

You can also install only what you exactly need:

  • Use the --pre flag: pip install --pre azure-mgmt-compute
  • Specify the version: pip install azure-mgmt-compute==0.30.0rc6

If you want to install azure from source:

git clone git://github.com/Azure/azure-sdk-for-python.git
cd azure-sdk-for-python
python setup.py install

DISCLAIMER

This is a release candidate. However, the core packages, from code quality/completeness perspectives can at this time be considered "stable" - it will be officially labeled as such in September (in sync with other languages).

We are not planning on any further major changes until then.

The following packages are still labeled "preview" but can be considered "stable":

  • azure-mgmt-resource 0.30.2
  • azure-mgmt-compute 0.32.0
  • azure-mgmt-network 0.30.0
  • azure-mgmt-storage 0.30.0rc6
  • azure-mgmt-keyvault 0.30.0

The following packages are already released as "stable" and are officially production ready:

  • azure-batch 1.1.0
  • azure-mgmt-batch 2.0.0
  • azure-mgmt-devtestlabs 1.0.0
  • azure-mgmt-logic 1.0.0
  • azure-mgmt-redis 2.0.0
  • azure-mgmt-scheduler 1.0.0
  • azure-mgmt-servermanager 1.0.0
  • azure-servicebus 0.20.3
  • azure-servicemanagement-legacy 0.20.5
  • azure-storage 0.33.0

The following packages are also available as preview only, not ready for production, and will NOT be installed with the 2.0.0rc6 "azure" meta-package. We removed then from the 2.0.0rc6 to prepare our customers to the 2.0.0 stable release that will only contains the stable packages listed before.

  • azure-graphrbac 0.30.0rc6
  • azure-mgmt-authorization 0.30.0rc6
  • azure-mgmt-cdn 0.30.0rc6
  • azure-mgmt-cognitiveservices 0.30.0rc6
  • azure-mgmt-containerregistry 0.1.0
  • azure-mgmt-commerce 0.30.0rc6
  • azure-mgmt-eventhub 0.1.0
  • azure-mgmt-dns 0.30.0rc6
  • azure-mgmt-iothub 0.1.0
  • azure-mgmt-media 0.1.0
  • azure-mgmt-notificationhubs 0.30.0
  • azure-mgmt-powerbiembedded 0.30.0rc6
  • azure-mgmt-servicebus 0.1.0
  • azure-mgmt-sql 0.1.0
  • azure-mgmt-trafficmanager 0.30.0rc6
  • azure-mgmt-web 0.30.1

Usage

For detailed documentation, please view our documentation on ReadTheDocs.

For further examples please visit the Microsoft Azure Python Developer Center.

Need Help?

Be sure to check out the Microsoft Azure Developer Forums on Stack Overflow if you have trouble with the provided code.

Contribute Code or Provide Feedback

If you would like to become an active contributor to this project please follow the instructions provided in Microsoft Azure Projects Contribution Guidelines.

If you encounter any bugs with the library please file an issue in the Issues section of the project.

Learn More

Microsoft Azure Python Developer Center

About

Microsoft Azure SDK for Python

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages