OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

How to use NuGet package in Python?

  • Thread starter Thread starter Shreya Kaushik
  • Start date Start date
S

Shreya Kaushik

Guest
We have a NuGet package in Azure Artifacts which we would like to use in our Python code. We are able to use DLLs and also assemblies from NuGet library, in Python but here we would specifically like to use NuGet package which another team built and deployed on Azure Artifacts.

Following is the code we have been able to write so far:

Code:
import clr
import unittest

clr.AddReference("System.Security.Cryptography.Algorithms")

def test(self):
    self.assertTrue(issubclass(type(System.Security.Cryptography.MD5.Create()),System.Security.Cryptography.MD5))

unittest.main()
<p>We have a NuGet package in Azure Artifacts which we would like to use in our Python code.
We are able to use DLLs and also assemblies from NuGet library, in Python but here we would specifically like to use NuGet package which another team built and deployed on Azure Artifacts.</p>
<p>Following is the code we have been able to write so far:</p>
<pre><code>import clr
import unittest

clr.AddReference("System.Security.Cryptography.Algorithms")

def test(self):
self.assertTrue(issubclass(type(System.Security.Cryptography.MD5.Create()),System.Security.Cryptography.MD5))

unittest.main()
</code></pre>
 

Latest posts

B
Replies
0
Views
1
Blundering Ecologist
B
Top