xn-auth 0.2.35__tar.gz → 0.2.36__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xn-auth
3
- Version: 0.2.35
3
+ Version: 0.2.36
4
4
  Summary: Auth adapter for XN-Api framework
5
5
  Author-email: Artemiev <mixartemev@gmail.com>
6
6
  License: MIT
@@ -163,6 +163,9 @@ class Proxy(Model, TsTrait):
163
163
  def dict(self):
164
164
  return dict(scheme="socks5", hostname=self.host, port=self.port, username=self.username, password=self.password)
165
165
 
166
+ def str(self):
167
+ return f"http://{self.username}:{self.password}@{self.host}:{self.port}"
168
+
166
169
 
167
170
  class Dc(TortModel):
168
171
  id: int = SmallIntField(True)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xn-auth
3
- Version: 0.2.35
3
+ Version: 0.2.36
4
4
  Summary: Auth adapter for XN-Api framework
5
5
  Author-email: Artemiev <mixartemev@gmail.com>
6
6
  License: MIT
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes