Skip to content

Commit 79c3a40

Browse files
nduchastelambv
authored andcommitted
add missing constants (python#791)
* add missing constants * fix spaces for linter and remove duplicate entries
1 parent 231f00d commit 79c3a40

File tree

1 file changed

+300
-3
lines changed

1 file changed

+300
-3
lines changed

third_party/2/pycurl.pyi

Lines changed: 300 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,37 +45,334 @@ class CurlShare(object):
4545
def close(self) -> None: ...
4646
def setopt(self, option: int, value: Any) -> Any: ...
4747

48+
ADDRESS_SCOPE = ... # type: int
49+
APPCONNECT_TIME = ... # type: int
50+
AUTOREFERER = ... # type: int
51+
BUFFERSIZE = ... # type: int
4852
CAINFO = ... # type: int
53+
CAPATH = ... # type: int
54+
COMPILE_LIBCURL_VERSION_NUM = ... # type: int
55+
COMPILE_PY_VERSION_HEX = ... # type: int
56+
CONNECTTIMEOUT = ... # type: int
4957
CONNECTTIMEOUT_MS = ... # type: int
58+
CONNECT_ONLY = ... # type: int
59+
CONNECT_TIME = ... # type: int
60+
CONTENT_LENGTH_DOWNLOAD = ... # type: int
61+
CONTENT_LENGTH_UPLOAD = ... # type: int
62+
CONTENT_TYPE = ... # type: int
63+
COOKIE = ... # type: int
64+
COOKIEFILE = ... # type: int
65+
COOKIEJAR = ... # type: int
66+
COOKIELIST = ... # type: int
67+
COPYPOSTFIELDS = ... # type: int
68+
CRLF = ... # type: int
69+
CRLFILE = ... # type: int
70+
CSELECT_ERR = ... # type: int
71+
CSELECT_IN = ... # type: int
72+
CSELECT_OUT = ... # type: int
73+
CURL_HTTP_VERSION_1_0 = ... # type: int
74+
CURL_HTTP_VERSION_1_1 = ... # type: int
75+
CURL_HTTP_VERSION_LAST = ... # type: int
76+
CURL_HTTP_VERSION_NONE = ... # type: int
5077
CUSTOMREQUEST = ... # type: int
78+
DEBUGFUNCTION = ... # type: int
79+
DNS_CACHE_TIMEOUT = ... # type: int
80+
DNS_USE_GLOBAL_CACHE = ... # type: int
81+
EFFECTIVE_URL = ... # type: int
82+
EGDSOCKET = ... # type: int
5183
ENCODING = ... # type: int
52-
E_CALL_MULTI_PERFORM = ... # type: int
53-
E_OPERATION_TIMEOUTED = ... # type: int
84+
FAILONERROR = ... # type: int
85+
FILE = ... # type: int
5486
FOLLOWLOCATION = ... # type: int
87+
FORBID_REUSE = ... # type: int
88+
FORM_CONTENTS = ... # type: int
89+
FORM_CONTENTTYPE = ... # type: int
90+
FORM_FILE = ... # type: int
91+
FORM_FILENAME = ... # type: int
92+
FRESH_CONNECT = ... # type: int
93+
FTPAPPEND = ... # type: int
94+
FTPAUTH_DEFAULT = ... # type: int
95+
FTPAUTH_SSL = ... # type: int
96+
FTPAUTH_TLS = ... # type: int
97+
FTPLISTONLY = ... # type: int
98+
FTPMETHOD_DEFAULT = ... # type: int
99+
FTPMETHOD_MULTICWD = ... # type: int
100+
FTPMETHOD_NOCWD = ... # type: int
101+
FTPMETHOD_SINGLECWD = ... # type: int
102+
FTPPORT = ... # type: int
103+
FTPSSLAUTH = ... # type: int
104+
FTPSSL_ALL = ... # type: int
105+
FTPSSL_CONTROL = ... # type: int
106+
FTPSSL_NONE = ... # type: int
107+
FTPSSL_TRY = ... # type: int
108+
FTP_ACCOUNT = ... # type: int
109+
FTP_ALTERNATIVE_TO_USER = ... # type: int
110+
FTP_CREATE_MISSING_DIRS = ... # type: int
111+
FTP_ENTRY_PATH = ... # type: int
112+
FTP_FILEMETHOD = ... # type: int
113+
FTP_RESPONSE_TIMEOUT = ... # type: int
114+
FTP_SKIP_PASV_IP = ... # type: int
115+
FTP_SSL = ... # type: int
116+
FTP_SSL_CCC = ... # type: int
117+
FTP_USE_EPRT = ... # type: int
118+
FTP_USE_EPSV = ... # type: int
119+
HEADER = ... # type: int
55120
HEADERFUNCTION = ... # type: int
121+
HEADER_SIZE = ... # type: int
122+
HTTP200ALIASES = ... # type: int
123+
HTTPAUTH = ... # type: int
124+
HTTPAUTH_ANY = ... # type: int
125+
HTTPAUTH_ANYSAFE = ... # type: int
126+
HTTPAUTH_AVAIL = ... # type: int
127+
HTTPAUTH_BASIC = ... # type: int
128+
HTTPAUTH_DIGEST = ... # type: int
129+
HTTPAUTH_GSSNEGOTIATE = ... # type: int
130+
HTTPAUTH_NONE = ... # type: int
131+
HTTPAUTH_NTLM = ... # type: int
56132
HTTPGET = ... # type: int
57133
HTTPHEADER = ... # type: int
134+
HTTPPOST = ... # type: int
135+
HTTPPROXYTUNNEL = ... # type: int
58136
HTTP_CODE = ... # type: int
59-
INFILESIE_LARGE = ... # type: int
137+
HTTP_CONNECTCODE = ... # type: int
138+
HTTP_CONTENT_DECODING = ... # type: int
139+
HTTP_TRANSFER_DECODING = ... # type: int
140+
HTTP_VERSION = ... # type: int
141+
IGNORE_CONTENT_LENGTH = ... # type: int
142+
INFILE = ... # type: int
143+
INFILESIZE = ... # type: int
60144
INFILESIZE_LARGE = ... # type: int
145+
INFOTYPE_DATA_IN = ... # type: int
146+
INFOTYPE_DATA_OUT = ... # type: int
147+
INFOTYPE_HEADER_IN = ... # type: int
148+
INFOTYPE_HEADER_OUT = ... # type: int
149+
INFOTYPE_SSL_DATA_IN = ... # type: int
150+
INFOTYPE_SSL_DATA_OUT = ... # type: int
151+
INFOTYPE_TEXT = ... # type: int
152+
INFO_COOKIELIST = ... # type: int
153+
INFO_FILETIME = ... # type: int
154+
INTERFACE = ... # type: int
155+
IOCMD_NOP = ... # type: int
156+
IOCMD_RESTARTREAD = ... # type: int
157+
IOCTLDATA = ... # type: int
158+
IOCTLFUNCTION = ... # type: int
159+
IOE_FAILRESTART = ... # type: int
160+
IOE_OK = ... # type: int
161+
IOE_UNKNOWNCMD = ... # type: int
162+
IPRESOLVE = ... # type: int
163+
IPRESOLVE_V4 = ... # type: int
164+
IPRESOLVE_V6 = ... # type: int
165+
IPRESOLVE_WHATEVER = ... # type: int
166+
ISSUERCERT = ... # type: int
167+
KRB4LEVEL = ... # type: int
168+
LASTSOCKET = ... # type: int
169+
LOCALPORT = ... # type: int
170+
LOCALPORTRANGE = ... # type: int
171+
LOCK_DATA_COOKIE = ... # type: int
172+
LOCK_DATA_DNS = ... # type: int
173+
LOW_SPEED_LIMIT = ... # type: int
174+
LOW_SPEED_TIME = ... # type: int
175+
MAXCONNECTS = ... # type: int
176+
MAXFILESIZE = ... # type: int
177+
MAXFILESIZE_LARGE = ... # type: int
178+
MAXREDIRS = ... # type: int
179+
MAX_RECV_SPEED_LARGE = ... # type: int
180+
MAX_SEND_SPEED_LARGE = ... # type: int
181+
NAMELOOKUP_TIME = ... # type: int
182+
NETRC = ... # type: int
183+
NETRC_FILE = ... # type: int
184+
NETRC_IGNORED = ... # type: int
185+
NETRC_OPTIONAL = ... # type: int
186+
NETRC_REQUIRED = ... # type: int
187+
NEW_DIRECTORY_PERMS = ... # type: int
188+
NEW_FILE_PERMS = ... # type: int
61189
NOBODY = ... # type: int
62190
NOPROGRESS = ... # type: int
63191
NOSIGNAL = ... # type: int
192+
NUM_CONNECTS = ... # type: int
193+
OPENSOCKETFUNCTION = ... # type: int
194+
OPT_FILETIME = ... # type: int
195+
OS_ERRNO = ... # type: int
196+
POLL_IN = ... # type: int
197+
POLL_INOUT = ... # type: int
198+
POLL_NONE = ... # type: int
199+
POLL_OUT = ... # type: int
200+
POLL_REMOVE = ... # type: int
201+
PORT = ... # type: int
64202
POST = ... # type: int
203+
POST301 = ... # type: int
65204
POSTFIELDS = ... # type: int
66205
POSTFIELDSIZE = ... # type: int
206+
POSTFIELDSIZE_LARGE = ... # type: int
207+
POSTQUOTE = ... # type: int
208+
PREQUOTE = ... # type: int
209+
PRETRANSFER_TIME = ... # type: int
67210
PRIMARY_IP = ... # type: int
68211
PROGRESSFUNCTION = ... # type: int
69212
PROXY = ... # type: int
213+
PROXYAUTH = ... # type: int
214+
PROXYAUTH_AVAIL = ... # type: int
215+
PROXYPORT = ... # type: int
216+
PROXYTYPE = ... # type: int
217+
PROXYTYPE_HTTP = ... # type: int
218+
PROXYTYPE_SOCKS4 = ... # type: int
219+
PROXYTYPE_SOCKS5 = ... # type: int
220+
PROXYUSERPWD = ... # type: int
221+
PROXY_TRANSFER_MODE = ... # type: int
222+
PUT = ... # type: int
223+
QUOTE = ... # type: int
224+
RANDOM_FILE = ... # type: int
225+
RANGE = ... # type: int
226+
READDATA = ... # type: int
70227
READFUNCTION = ... # type: int
228+
READFUNC_ABORT = ... # type: int
229+
REDIRECT_COUNT = ... # type: int
230+
REDIRECT_TIME = ... # type: int
231+
REDIRECT_URL = ... # type: int
232+
REFERER = ... # type: int
233+
REQUEST_SIZE = ... # type: int
71234
RESPONSE_CODE = ... # type: int
235+
RESUME_FROM = ... # type: int
236+
RESUME_FROM_LARGE = ... # type: int
237+
SHARE = ... # type: int
238+
SH_SHARE = ... # type: int
239+
SH_UNSHARE = ... # type: int
240+
SIZE_DOWNLOAD = ... # type: int
241+
SIZE_UPLOAD = ... # type: int
242+
SOCKET_TIMEOUT = ... # type: int
243+
SPEED_DOWNLOAD = ... # type: int
244+
SPEED_UPLOAD = ... # type: int
245+
SSH_AUTH_ANY = ... # type: int
246+
SSH_AUTH_DEFAULT = ... # type: int
247+
SSH_AUTH_HOST = ... # type: int
248+
SSH_AUTH_KEYBOARD = ... # type: int
249+
SSH_AUTH_NONE = ... # type: int
250+
SSH_AUTH_PASSWORD = ... # type: int
251+
SSH_AUTH_PUBLICKEY = ... # type: int
252+
SSH_AUTH_TYPES = ... # type: int
253+
SSH_HOST_PUBLIC_KEY_MD5 = ... # type: int
254+
SSH_PRIVATE_KEYFILE = ... # type: int
255+
SSH_PUBLIC_KEYFILE = ... # type: int
72256
SSLCERT = ... # type: int
73257
SSLCERTPASSWD = ... # type: int
258+
SSLCERTTYPE = ... # type: int
259+
SSLENGINE = ... # type: int
260+
SSLENGINE_DEFAULT = ... # type: int
74261
SSLKEY = ... # type: int
75262
SSLKEYPASSWD = ... # type: int
263+
SSLKEYTYPE = ... # type: int
264+
SSLVERSION = ... # type: int
265+
SSLVERSION_DEFAULT = ... # type: int
266+
SSLVERSION_SSLv2 = ... # type: int
267+
SSLVERSION_SSLv3 = ... # type: int
268+
SSLVERSION_TLSv1 = ... # type: int
269+
SSL_CIPHER_LIST = ... # type: int
270+
SSL_ENGINES = ... # type: int
271+
SSL_SESSIONID_CACHE = ... # type: int
76272
SSL_VERIFYHOST = ... # type: int
77273
SSL_VERIFYPEER = ... # type: int
274+
SSL_VERIFYRESULT = ... # type: int
275+
STARTTRANSFER_TIME = ... # type: int
276+
STDERR = ... # type: int
277+
TCP_NODELAY = ... # type: int
278+
TIMECONDITION = ... # type: int
279+
TIMECONDITION_IFMODSINCE = ... # type: int
280+
TIMECONDITION_IFUNMODSINCE = ... # type: int
281+
TIMECONDITION_LASTMOD = ... # type: int
282+
TIMECONDITION_NONE = ... # type: int
283+
TIMEOUT = ... # type: int
78284
TIMEOUT_MS = ... # type: int
285+
TIMEVALUE = ... # type: int
286+
TOTAL_TIME = ... # type: int
287+
TRANSFERTEXT = ... # type: int
288+
UNRESTRICTED_AUTH = ... # type: int
79289
UPLOAD = ... # type: int
80290
URL = ... # type: int
291+
USERAGENT = ... # type: int
292+
USERPWD = ... # type: int
293+
VERBOSE = ... # type: int
294+
WRITEDATA = ... # type: int
81295
WRITEFUNCTION = ... # type: int
296+
WRITEHEADER = ... # type: int
297+
298+
E_ABORTED_BY_CALLBACK = ... # type: int
299+
E_BAD_CONTENT_ENCODING = ... # type: int
300+
E_BAD_DOWNLOAD_RESUME = ... # type: int
301+
E_BAD_FUNCTION_ARGUMENT = ... # type: int
302+
E_CALL_MULTI_PERFORM = ... # type: int
303+
E_CONV_FAILED = ... # type: int
304+
E_CONV_REQD = ... # type: int
305+
E_COULDNT_CONNECT = ... # type: int
306+
E_COULDNT_RESOLVE_HOST = ... # type: int
307+
E_COULDNT_RESOLVE_PROXY = ... # type: int
308+
E_FAILED_INIT = ... # type: int
309+
E_FILESIZE_EXCEEDED = ... # type: int
310+
E_FILE_COULDNT_READ_FILE = ... # type: int
311+
E_FTP_ACCESS_DENIED = ... # type: int
312+
E_FTP_CANT_GET_HOST = ... # type: int
313+
E_FTP_CANT_RECONNECT = ... # type: int
314+
E_FTP_COULDNT_GET_SIZE = ... # type: int
315+
E_FTP_COULDNT_RETR_FILE = ... # type: int
316+
E_FTP_COULDNT_SET_ASCII = ... # type: int
317+
E_FTP_COULDNT_SET_BINARY = ... # type: int
318+
E_FTP_COULDNT_STOR_FILE = ... # type: int
319+
E_FTP_COULDNT_USE_REST = ... # type: int
320+
E_FTP_PORT_FAILED = ... # type: int
321+
E_FTP_QUOTE_ERROR = ... # type: int
322+
E_FTP_SSL_FAILED = ... # type: int
323+
E_FTP_WEIRD_227_FORMAT = ... # type: int
324+
E_FTP_WEIRD_PASS_REPLY = ... # type: int
325+
E_FTP_WEIRD_PASV_REPLY = ... # type: int
326+
E_FTP_WEIRD_SERVER_REPLY = ... # type: int
327+
E_FTP_WEIRD_USER_REPLY = ... # type: int
328+
E_FTP_WRITE_ERROR = ... # type: int
329+
E_FUNCTION_NOT_FOUND = ... # type: int
330+
E_GOT_NOTHING = ... # type: int
331+
E_HTTP_POST_ERROR = ... # type: int
332+
E_HTTP_RANGE_ERROR = ... # type: int
333+
E_HTTP_RETURNED_ERROR = ... # type: int
334+
E_INTERFACE_FAILED = ... # type: int
335+
E_LDAP_CANNOT_BIND = ... # type: int
336+
E_LDAP_INVALID_URL = ... # type: int
337+
E_LDAP_SEARCH_FAILED = ... # type: int
338+
E_LIBRARY_NOT_FOUND = ... # type: int
339+
E_LOGIN_DENIED = ... # type: int
340+
E_MULTI_BAD_EASY_HANDLE = ... # type: int
341+
E_MULTI_BAD_HANDLE = ... # type: int
342+
E_MULTI_INTERNAL_ERROR = ... # type: int
343+
E_MULTI_OK = ... # type: int
344+
E_MULTI_OUT_OF_MEMORY = ... # type: int
345+
E_OK = ... # type: int
346+
E_OPERATION_TIMEOUTED = ... # type: int
347+
E_OUT_OF_MEMORY = ... # type: int
348+
E_PARTIAL_FILE = ... # type: int
349+
E_READ_ERROR = ... # type: int
350+
E_RECV_ERROR = ... # type: int
351+
E_REMOTE_FILE_NOT_FOUND = ... # type: int
352+
E_SEND_ERROR = ... # type: int
353+
E_SEND_FAIL_REWIND = ... # type: int
354+
E_SHARE_IN_USE = ... # type: int
355+
E_SSH = ... # type: int
356+
E_SSL_CACERT = ... # type: int
357+
E_SSL_CACERT_BADFILE = ... # type: int
358+
E_SSL_CERTPROBLEM = ... # type: int
359+
E_SSL_CIPHER = ... # type: int
360+
E_SSL_CONNECT_ERROR = ... # type: int
361+
E_SSL_ENGINE_INITFAILED = ... # type: int
362+
E_SSL_ENGINE_NOTFOUND = ... # type: int
363+
E_SSL_ENGINE_SETFAILED = ... # type: int
364+
E_SSL_PEER_CERTIFICATE = ... # type: int
365+
E_SSL_SHUTDOWN_FAILED = ... # type: int
366+
E_TELNET_OPTION_SYNTAX = ... # type: int
367+
E_TFTP_DISKFULL = ... # type: int
368+
E_TFTP_EXISTS = ... # type: int
369+
E_TFTP_ILLEGAL = ... # type: int
370+
E_TFTP_NOSUCHUSER = ... # type: int
371+
E_TFTP_NOTFOUND = ... # type: int
372+
E_TFTP_PERM = ... # type: int
373+
E_TFTP_UNKNOWNID = ... # type: int
374+
E_TOO_MANY_REDIRECTS = ... # type: int
375+
E_UNKNOWN_TELNET_OPTION = ... # type: int
376+
E_UNSUPPORTED_PROTOCOL = ... # type: int
377+
E_URL_MALFORMAT = ... # type: int
378+
E_WRITE_ERROR = ... # type: int

0 commit comments

Comments
 (0)