repo_full_name stringlengths 6 93 | repo_url stringlengths 25 112 | repo_api_url stringclasses 28
values | owner stringclasses 28
values | repo_name stringclasses 28
values | description stringclasses 28
values | stars int64 617 98.8k | forks int64 31 355 ⌀ | watchers int64 990 999 ⌀ | license stringclasses 2
values | default_branch stringclasses 2
values | repo_created_at timestamp[s]date 2012-07-24 23:12:50 2025-06-16 08:07:28 ⌀ | repo_updated_at timestamp[s]date 2026-02-23 15:23:15 2026-05-03 18:52:12 ⌀ | repo_topics listlengths 0 13 ⌀ | repo_languages unknown | is_fork bool 1
class | open_issues int64 3 104 ⌀ | file_path stringlengths 3 208 | file_name stringclasses 509
values | file_extension stringclasses 1
value | file_size_bytes int64 101 84k ⌀ | file_url stringclasses 627
values | file_raw_url stringclasses 627
values | file_sha stringclasses 624
values | language stringclasses 8
values | parsed_at stringdate 2026-05-04 01:12:36 2026-05-04 19:41:55 | text stringlengths 100 102k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | solvers/enumerative/models/transformers/preprocess_pretraining_data.py | preprocess_pretraining_data.py | .py | 2,792 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/solvers/enumerative/models/transformers/preprocess_pretraining_data.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/solvers/enumerative/models/transformers/preprocess_pretraining_data.py | 42ac87c25df0dcf15ef209af323c2337b09a00c8 | Python | 2026-05-04T01:15:09.552030 | import glob
import gzip
import json
import random
from tqdm import tqdm
for split in ['train', 'valid', 'test']:
data_path = 'python_data/{}/*.jsonl.gz'.format(split)
#output_file = 'python_data/{}.jsonl'.format(split)
output_file = 'python_data/{}.txt'.format(split)
if False:
of = open(output... |
microsoft/PythonProgrammingPuzzles | https://github.com/microsoft/PythonProgrammingPuzzles | https://api.github.com/repos/microsoft/PythonProgrammingPuzzles | microsoft | PythonProgrammingPuzzles | A Dataset of Python Challenges for AI Research | 997 | 97 | 997 | mit | main | 2021-04-25T21:05:10 | 2026-04-11T08:05:09 | [
"ai",
"program-synthesis",
"programming-competitions",
"puzzles"
] | {
"Python": 902526,
"Jupyter Notebook": 77844,
"Shell": 21153
} | false | 28 | solvers/enumerative/models/uniform.py | uniform.py | .py | 4,225 | https://github.com/microsoft/PythonProgrammingPuzzles/blob/main/solvers/enumerative/models/uniform.py | https://raw.githubusercontent.com/microsoft/PythonProgrammingPuzzles/main/solvers/enumerative/models/uniform.py | 0310f5890df769e12d642cc18e264323d002a9d4 | Python | 2026-05-04T01:15:11.027697 | from typing import List, Dict, Callable, Tuple, Generator, Set, Sequence
import functools
import operator
from collections import defaultdict
import random
from tython import Program, TastNode, _RULES_BY_KIND, Rule, nt
from models.model import CandidateGenerator, reachable_rules_by_kind
from models import RegisterMode... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/async_fetch_task.py | async_fetch_task.py | .py | 2,278 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/async_fetch_task.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/async_fetch_task.py | 6fc7d6cb5a93f2d6d43dd059ef406d2bda435cd4 | Python | 2026-05-04T01:15:16.147125 | import os
import oss2
import base64
import time
from oss2.compat import to_bytes
from oss2.models import AsyncFetchTaskConfiguration
# 以下代码展示了创建异步获取文件到bucket任务到API的用法
# 首先初始化AccessKeyId、AccessKeySecret、Endpoint等信息。
# 通过环境变量获取,或者把诸如“<你的AccessKeyId>”替换成真实的AccessKeyId等。
#
# 以杭州区域为例,Endpoint可以是:
# http://oss-cn-hangzho... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/async_process_object.py | async_process_object.py | .py | 2,645 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/async_process_object.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/async_process_object.py | 2218845da93051665be1048e94972b058d8cd30d | Python | 2026-05-04T01:15:17.271006 | import base64
import os
import time
import oss2
# Specify access information, such as AccessKeyId, AccessKeySecret, and Endpoint.
# You can obtain access information from evironment variables or replace sample values in the code, such as <your AccessKeyId> with actual values.
#
# For example, if your bucket is located... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/bucket.py | bucket.py | .py | 4,880 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/bucket.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/bucket.py | c1eb9dfd8b55e3a414d33822e3f69db2210ee3fb | Python | 2026-05-04T01:15:18.347690 | # -*- coding: utf-8 -*-
import time
import os
import oss2
# 以下代码展示了Bucket相关操作,诸如创建、删除、列举Bucket等。
# 首先初始化AccessKeyId、AccessKeySecret、Endpoint等信息。
# 通过环境变量获取,或者把诸如“<你的AccessKeyId>”替换成真实的AccessKeyId等。
access_key_id = os.getenv('OSS_TEST_ACCESS_KEY_ID', '<你的AccessKeyId>')
access_key_secret = os.getenv('OSS_TEST_ACCES... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/bucket_access_monitor.py | bucket_access_monitor.py | .py | 1,511 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/bucket_access_monitor.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/bucket_access_monitor.py | ea1599fbf5d3dcb4a3caa72bb98bc37943252dde | Python | 2026-05-04T01:15:19.471994 |
import os
import oss2
# Specify access information, such as AccessKeyId, AccessKeySecret, and Endpoint.
# You can obtain access information from evironment variables or replace sample values in the code, such as <your AccessKeyId> with actual values.
#
# For example, if your bucket is located in the China (Hangzhou) ... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/bucket_access_point.py | bucket_access_point.py | .py | 3,335 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/bucket_access_point.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/bucket_access_point.py | 302005938f59befa65a5de639ae01789c55d8a3a | Python | 2026-05-04T01:15:20.524804 |
import os
import oss2
# Specify access information, such as AccessKeyId, AccessKeySecret, and Endpoint.
# You can obtain access information from evironment variables or replace sample values in the code, such as <your AccessKeyId> with actual values.
#
# For example, if your bucket is located in the China (Hangzhou) ... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/bucket_access_point_policy.py | bucket_access_point_policy.py | .py | 1,991 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/bucket_access_point_policy.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/bucket_access_point_policy.py | 4b0342b0bd2dd24d98ccd262815c6cf77b9972fe | Python | 2026-05-04T01:15:21.753471 |
import os
import oss2
# Specify access information, such as AccessKeyId, AccessKeySecret, and Endpoint.
# You can obtain access information from evironment variables or replace sample values in the code, such as <your AccessKeyId> with actual values.
#
# For example, if your bucket is located in the China (Hangzhou) ... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/bucket_archive_direct_read.py | bucket_archive_direct_read.py | .py | 1,355 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/bucket_archive_direct_read.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/bucket_archive_direct_read.py | b1c84d71d797e4c1557b816cc02bbbd890f980f3 | Python | 2026-05-04T01:15:22.829402 |
import os
import oss2
# Specify access information, such as AccessKeyId, AccessKeySecret, and Endpoint.
# You can obtain access information from evironment variables or replace sample values in the code, such as <your AccessKeyId> with actual values.
#
# For example, if your bucket is located in the China (Hangzhou) ... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/bucket_callback_policy.py | bucket_callback_policy.py | .py | 2,781 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/bucket_callback_policy.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/bucket_callback_policy.py | 14b5c72807b40a0d0fbeee40f29605f42a731419 | Python | 2026-05-04T01:15:23.979387 | import base64
import os
import oss2
from oss2.models import CallbackPolicyInfo
# Specify access information, such as AccessKeyId, AccessKeySecret, and Endpoint.
# You can obtain access information from evironment variables or replace sample values in the code, such as <your AccessKeyId> with actual values.
#
# For exa... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/bucket_cname.py | bucket_cname.py | .py | 2,330 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/bucket_cname.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/bucket_cname.py | b347c298a9bd6dc0dc9a522a0d06c598ca0c7db5 | Python | 2026-05-04T01:15:25.310791 |
import os
import oss2
# Specify access information, such as AccessKeyId, AccessKeySecret, and Endpoint.
# You can obtain access information from evironment variables or replace sample values in the code, such as <your AccessKeyId> with actual values.
#
# For example, if your bucket is located in the China (Hangzhou) ... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/bucket_cors.py | bucket_cors.py | .py | 1,958 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/bucket_cors.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/bucket_cors.py | 6abee5daec60d3810bec784ba9a0e378bd8ec317 | Python | 2026-05-04T01:15:26.560653 |
import os
import oss2
from oss2.models import BucketCors, CorsRule
# Specify access information, such as AccessKeyId, AccessKeySecret, and Endpoint.
# You can obtain access information from evironment variables or replace sample values in the code, such as <your AccessKeyId> with actual values.
#
# For example, if yo... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/bucket_data_redundancy_transition.py | bucket_data_redundancy_transition.py | .py | 3,876 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/bucket_data_redundancy_transition.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/bucket_data_redundancy_transition.py | e682e945fa4e31474758c1c24dc92b9f7d518684 | Python | 2026-05-04T01:15:27.805027 |
import os
import oss2
# Specify access information, such as AccessKeyId, AccessKeySecret, and Endpoint.
# You can obtain access information from evironment variables or replace sample values in the code, such as <your AccessKeyId> with actual values.
#
# For example, if your bucket is located in the China (Hangzhou) ... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/bucket_https_config.py | bucket_https_config.py | .py | 1,890 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/bucket_https_config.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/bucket_https_config.py | 85812bf99fc4ead6a045bfe45d2b4a616f4cb612 | Python | 2026-05-04T01:15:29.100087 | import os
import oss2
# Specify access information, such as AccessKeyId, AccessKeySecret, and Endpoint.
# You can obtain access information from evironment variables or replace sample values in the code, such as <your AccessKeyId> with actual values.
#
# For example, if your bucket is located in the China (Hangzhou) r... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/bucket_inventory.py | bucket_inventory.py | .py | 6,045 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/bucket_inventory.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/bucket_inventory.py | fc9c429be96180f901549e33f527894957393d68 | Python | 2026-05-04T01:15:30.345073 | # -*- coding: utf-8 -*-
import oss2
import os
from oss2.models import (InventoryConfiguration,
InventoryFilter,
InventorySchedule,
InventoryDestination,
InventoryBucketDestination,
InventoryServe... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/bucket_logging.py | bucket_logging.py | .py | 1,908 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/bucket_logging.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/bucket_logging.py | c6d9b071fc4324900e3c172ae0208ef5dc98a923 | Python | 2026-05-04T01:15:31.566291 |
import os
import oss2
from oss2.models import BucketLogging
# Specify access information, such as AccessKeyId, AccessKeySecret, and Endpoint.
# You can obtain access information from evironment variables or replace sample values in the code, such as <your AccessKeyId> with actual values.
#
# For example, if your buck... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/bucket_meta_query.py | bucket_meta_query.py | .py | 2,025 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/bucket_meta_query.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/bucket_meta_query.py | 09e3847731d11e40f32a5c6620e4476543a3d2e4 | Python | 2026-05-04T01:15:32.869882 |
import os
import oss2
from oss2.models import MetaQuery, AggregationsRequest
# Specify access information, such as AccessKeyId, AccessKeySecret, and Endpoint.
# You can obtain access information from evironment variables or replace sample values in the code, such as <your AccessKeyId> with actual values.
#
# For exam... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/bucket_policy.py | bucket_policy.py | .py | 2,016 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/bucket_policy.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/bucket_policy.py | 9f703b17034905e1a48a5544afe12fc156606e5e | Python | 2026-05-04T01:15:34.015756 |
import os
import oss2
import json
# 以下代码展示了bucket_policy相关API的用法,
# 具体policy书写规则参考官网文档说明
# 首先初始化AccessKeyId、AccessKeySecret、Endpoint等信息。
# 通过环境变量获取,或者把诸如“<你的AccessKeyId>”替换成真实的AccessKeyId等。
#
# 以杭州区域为例,Endpoint可以是:
# http://oss-cn-hangzhou.aliyuncs.com
# https://oss-cn-hangzhou.aliyuncs.com
access_key_id = os.ge... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/bucket_referer.py | bucket_referer.py | .py | 1,897 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/bucket_referer.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/bucket_referer.py | 526821d1d81641292b2c410ea851af3ea6f4689f | Python | 2026-05-04T01:15:35.346480 |
import os
import oss2
from oss2.models import BucketReferer
# Specify access information, such as AccessKeyId, AccessKeySecret, and Endpoint.
# You can obtain access information from evironment variables or replace sample values in the code, such as <your AccessKeyId> with actual values.
#
# For example, if your buck... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/bucket_replication.py | bucket_replication.py | .py | 3,296 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/bucket_replication.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/bucket_replication.py | 49bb51333c69074c534196977d4ea8e4a5a1714c | Python | 2026-05-04T01:15:36.609570 |
import os
import oss2
from oss2.models import ReplicationRule
# Specify access information, such as AccessKeyId, AccessKeySecret, and Endpoint.
# You can obtain access information from evironment variables or replace sample values in the code, such as <your AccessKeyId> with actual values.
#
# For example, if your bu... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/bucket_resource_group.py | bucket_resource_group.py | .py | 1,481 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/bucket_resource_group.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/bucket_resource_group.py | 0575f0cac332d3d3cac13e90f26f59f7baa7b320 | Python | 2026-05-04T01:15:37.787243 |
import os
import oss2
# Specify access information, such as AccessKeyId, AccessKeySecret, and Endpoint.
# You can obtain access information from evironment variables or replace sample values in the code, such as <your AccessKeyId> with actual values.
#
# For example, if your bucket is located in the China (Hangzhou) ... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/bucket_style.py | bucket_style.py | .py | 1,796 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/bucket_style.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/bucket_style.py | 3672edb65b1c810b401d6f9c15c5e70686d425c5 | Python | 2026-05-04T01:15:39.113465 |
import os
import oss2
# Specify access information, such as AccessKeyId, AccessKeySecret, and Endpoint.
# You can obtain access information from evironment variables or replace sample values in the code, such as <your AccessKeyId> with actual values.
#
# For example, if your bucket is located in the China (Hangzhou) ... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/bucket_symlink.py | bucket_symlink.py | .py | 1,622 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/bucket_symlink.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/bucket_symlink.py | 769278192fde2073529444f3be2946d45df5df1c | Python | 2026-05-04T01:15:40.466630 |
import os
import oss2
# Specify access information, such as AccessKeyId, AccessKeySecret, and Endpoint.
# You can obtain access information from evironment variables or replace sample values in the code, such as <your AccessKeyId> with actual values.
#
# For example, if your bucket is located in the China (Hangzhou) ... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/bucket_tagging.py | bucket_tagging.py | .py | 1,809 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/bucket_tagging.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/bucket_tagging.py | b602feee4f9478c19a0cc68bbcf4f30e3da28b69 | Python | 2026-05-04T01:15:41.792375 |
import os
import oss2
from oss2.models import Tagging, TaggingRule
# Specify access information, such as AccessKeyId, AccessKeySecret, and Endpoint.
# You can obtain access information from evironment variables or replace sample values in the code, such as <your AccessKeyId> with actual values.
#
# For example, if yo... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/bucket_transfer_acceleration.py | bucket_transfer_acceleration.py | .py | 1,753 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/bucket_transfer_acceleration.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/bucket_transfer_acceleration.py | 82f7cfe5bdd0e37e88fb0ef0b785c68683f3f3c4 | Python | 2026-05-04T01:15:43.047406 |
import os
import oss2
# Specify access information, such as AccessKeyId, AccessKeySecret, and Endpoint.
# You can obtain access information from evironment variables or replace sample values in the code, such as <your AccessKeyId> with actual values.
#
# For example, if your bucket is located in the China (Hangzhou) ... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/bucket_user_qos.py | bucket_user_qos.py | .py | 1,176 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/bucket_user_qos.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/bucket_user_qos.py | f04b3e92979cc820249f6be447c842ca2d666a22 | Python | 2026-05-04T01:15:44.358100 | # -*- coding: utf-8 -*-
import os
import oss2
# 以下代码展示了set_bucket_storage_capacity的的用法。
# 首先初始化AccessKeyId、AccessKeySecret、Endpoint等信息。
# 通过环境变量获取,或者把诸如“<你的AccessKeyId>”替换成真实的AccessKeyId等。
access_key_id = os.getenv('OSS_TEST_ACCESS_KEY_ID', '<你的AccessKeyId>')
access_key_secret = os.getenv('OSS_TEST_ACCESS_KEY_SECRET... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/bucket_versioning.py | bucket_versioning.py | .py | 1,826 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/bucket_versioning.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/bucket_versioning.py | a841abd38d16ba61ee67fe179a2c0e0b7a290ccc | Python | 2026-05-04T01:15:45.520197 |
import os
import oss2
from oss2.models import BucketVersioningConfig
# Specify access information, such as AccessKeyId, AccessKeySecret, and Endpoint.
# You can obtain access information from evironment variables or replace sample values in the code, such as <your AccessKeyId> with actual values.
#
# For example, if ... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/bucket_website.py | bucket_website.py | .py | 6,202 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/bucket_website.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/bucket_website.py | 47b0bc2fd60e3e82cf16c077520ea198fc8f00f7 | Python | 2026-05-04T01:15:46.731095 | # -*- coding: utf-8 -*-
import os
import oss2
from oss2.models import (ConditionInlcudeHeader,
Condition,
Redirect,
RedirectMirrorHeaders,
MirrorHeadersSet,
RoutingRule,
... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/bucket_worm.py | bucket_worm.py | .py | 2,004 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/bucket_worm.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/bucket_worm.py | d5954c13e2c9ec12102df05cc2111e3c5a67d6ca | Python | 2026-05-04T01:15:47.926752 |
import os
import oss2
# Specify access information, such as AccessKeyId, AccessKeySecret, and Endpoint.
# You can obtain access information from evironment variables or replace sample values in the code, such as <your AccessKeyId> with actual values.
#
# For example, if your bucket is located in the China (Hangzhou) ... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/custom_crypto.py | custom_crypto.py | .py | 7,966 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/custom_crypto.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/custom_crypto.py | e9605a893efafa813cccd688db5939415c6fe23f | Python | 2026-05-04T01:15:49.477321 | # -*- coding: utf-8 -*-
import os
import oss2
from oss2.crypto import BaseCryptoProvider
from oss2.utils import b64encode_as_string, b64decode_from_string, to_bytes
from oss2.headers import *
from Crypto.Cipher import PKCS1_OAEP
from Crypto.PublicKey import RSA
from requests.structures import CaseInsensitiveDict
# ... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/describe_regions.py | describe_regions.py | .py | 1,733 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/describe_regions.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/describe_regions.py | 04bda45a53375039c6e3aae11e14e3ce355282de | Python | 2026-05-04T01:15:50.810131 |
import os
import oss2
# Specify access information, such as AccessKeyId, AccessKeySecret, and Endpoint.
# You can obtain access information from evironment variables or replace sample values in the code, such as <your AccessKeyId> with actual values.
#
# For example, if your bucket is located in the China (Hangzhou) ... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/download.py | download.py | .py | 2,517 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/download.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/download.py | 4abbf25173b30c35299a31bf814df162038de190 | Python | 2026-05-04T01:15:51.937121 | # -*- coding: utf-8 -*-
import os
import oss2
# 以下代码展示了文件下载的用法,如下载文件、范围下载、断点续传下载等。
# 首先初始化AccessKeyId、AccessKeySecret、Endpoint等信息。
# 通过环境变量获取,或者把诸如“<你的AccessKeyId>”替换成真实的AccessKeyId等。
#
# 以杭州区域为例,Endpoint可以是:
# http://oss-cn-hangzhou.aliyuncs.com
# https://oss-cn-hangzhou.aliyuncs.com
# 分别以HTTP、HTTPS协议访问。
acc... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/environment_variable_credentials_provider.py | environment_variable_credentials_provider.py | .py | 848 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/environment_variable_credentials_provider.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/environment_variable_credentials_provider.py | 758e0a7617e5e19781863cbb6b0a758d99307614 | Python | 2026-05-04T01:15:53.382963 | import oss2
from oss2.credentials import EnvironmentVariableCredentialsProvider
# Specify access information, such as Endpoint, BucketName.
# You can obtain access information from evironment variables , such as <OSS_ACCESS_KEY_ID>, <OSS_ACCESS_KEY_SECRET> and <OSS_SESSION_TOKEN>.
# Please set the above environment va... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/image.py | image.py | .py | 3,330 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/image.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/image.py | 49d8b7a8ce7689209c848e720c7227dcddebfedb | Python | 2026-05-04T01:15:59.513414 | # -*- coding: utf-8 -*-
import json
import os
from PIL import Image
import oss2
# 以下代码展示了图片服务的基本用法。更详细应用请参看官网文档 https://help.aliyun.com/document_detail/32206.html
# 首先初始化AccessKeyId、AccessKeySecret、Endpoint等信息。
# 通过环境变量获取,或者把诸如“<你的AccessKeyId>”替换成真实的AccessKeyId等。
#
# 以杭州区域为例,Endpoint可以是:
# http://oss-cn-hangzho... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/live_channel.py | live_channel.py | .py | 5,726 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/live_channel.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/live_channel.py | f592c77c93be3452d8a8bad97257f6c362307045 | Python | 2026-05-04T01:16:01.007983 | # -*- coding: utf-8 -*-
import os
import time
import oss2
# 以下代码展示了视频直播相关接口的用法。
# 首先初始化AccessKeyId、AccessKeySecret、Endpoint等信息。
# 通过环境变量获取,或者把诸如“<您的AccessKeyId>”替换成真实的AccessKeyId等。
#
# 以杭州区域为例,Endpoint是:
# http://oss-cn-shenzhen.aliyuncs.com 或
# https://oss-cn-shenzhen.aliyuncs.com
access_key_id = os.getenv('... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/object_basic.py | object_basic.py | .py | 3,268 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/object_basic.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/object_basic.py | ced486ad33269cb33c0c56f570852fe8fa7277f0 | Python | 2026-05-04T01:16:07.223600 | # -*- coding: utf-8 -*-
import os
import shutil
import oss2
# 以下代码展示了基本的文件上传、下载、罗列、删除用法。
# 首先初始化AccessKeyId、AccessKeySecret、Endpoint等信息。
# 通过环境变量获取,或者把诸如“<你的AccessKeyId>”替换成真实的AccessKeyId等。
#
# 以杭州区域为例,Endpoint可以是:
# http://oss-cn-hangzhou.aliyuncs.com
# https://oss-cn-hangzhou.aliyuncs.com
# 分别以HTTP、HTTPS协议访... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/object_callback.py | object_callback.py | .py | 3,369 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/object_callback.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/object_callback.py | 05250364b4f82ebc761e501c7482b3d4293fda0a | Python | 2026-05-04T01:16:08.486580 | # -*- coding: utf-8 -*-
import json
import base64
import os
import oss2
# 以下代码展示了上传回调的用法。
# put_object/complete_multipart_upload支持上传回调,resumable_upload不支持。
# 回调服务器(callbacke server)的示例代码请参考 http://shinenuaa.oss-cn-hangzhou.aliyuncs.com/images/callback_app_server.py.zip
# 您也可以使用OSS提供的回调服务器 http://oss-demo.aliyuncs.... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/object_check.py | object_check.py | .py | 6,069 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/object_check.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/object_check.py | c301edbff4f0f6f58919735f4e616d3187c14cad | Python | 2026-05-04T01:16:09.896559 | # -*- coding: utf-8 -*-
import base64
import hashlib
import os
import tempfile
import oss2
# 以下代码展示了上传/下载时数据校验的用法。
# OSS支持MD5、CRC64两种数据校验。MD5校验,需要用户计算出上传内容的MD5值,并放到header的`Content-MD5`中。
# CRC64校验,上传时自动完成校验,下载时需要用户校验。OSS Python SDK默认代开CRC64校验。
# 注意:断点续传上传不支持MD5,断点续传下载不支持CRC64,其它上传/下载都支持MD5和CRC64校验。
# 首先初始化AccessK... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/object_crypto.py | object_crypto.py | .py | 6,400 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/object_crypto.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/object_crypto.py | 7cb3b1f04e1c7681f3a423d6c25274ff4eb40028 | Python | 2026-05-04T01:16:11.392415 | # -*- coding: utf-8 -*-
import os
import sys
from Crypto.PublicKey import RSA
from Crypto.PublicKey.RSA import RsaKey
sys.path.append("/Users/fengyu/aliyun-oss-python-sdk")
import oss2
from oss2 import LocalRsaProvider, AliKMSProvider, RsaProvider
from oss2 import models
# 以下代码展示了客户端文件加密上传下载的用法,如下载文件、上传文件等。
# 首先初... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/object_extra.py | object_extra.py | .py | 2,944 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/object_extra.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/object_extra.py | 0dce7b28a70780e7cf32dfab637ec3ea5dcebb77 | Python | 2026-05-04T01:16:12.735391 | # -*- coding: utf-8 -*-
import os
from datetime import datetime
import oss2
# 以下代码展示了一些和文件相关的高级用法,如中文、设置用户自定义元数据、拷贝文件、追加上传等。
# 首先初始化AccessKeyId、AccessKeySecret、Endpoint等信息。
# 通过环境变量获取,或者把诸如“<你的AccessKeyId>”替换成真实的AccessKeyId等。
access_key_id = os.getenv('OSS_TEST_ACCESS_KEY_ID', '<你的AccessKeyId>')
access_key_secret... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/object_forbid_overwrite.py | object_forbid_overwrite.py | .py | 7,441 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/object_forbid_overwrite.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/object_forbid_overwrite.py | ce270170acf84b590fe94b2039f92192b5c4e8f6 | Python | 2026-05-04T01:16:14.270776 |
import os
import oss2
from oss2 import SizedFileAdapter, determine_part_size
from oss2.models import PartInfo
# Specify access information, such as AccessKeyId, AccessKeySecret, and Endpoint.
# You can obtain access information from evironment variables or replace sample values in the code, such as <your AccessKeyId>... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/object_operation.py | object_operation.py | .py | 1,694 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/object_operation.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/object_operation.py | 1c13ee66e4f2fcbd02d728b4fb75eb4916855960 | Python | 2026-05-04T01:16:15.617295 |
import os
import oss2
# Specify access information, such as AccessKeyId, AccessKeySecret, and Endpoint.
# You can obtain access information from evironment variables or replace sample values in the code, such as <your AccessKeyId> with actual values.
#
# For example, if your bucket is located in the China (Hangzhou) ... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/object_post.py | object_post.py | .py | 7,112 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/object_post.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/object_post.py | 0a8df1517e525bf861af62ed7ade73643ee8f96a | Python | 2026-05-04T01:16:16.922314 | # -*- coding: utf-8 -*-
import time
import datetime
import json
import base64
import hmac
import hashlib
import os
import crcmod
import requests
# 以下代码展示了PostObject的用法。PostObject不依赖于OSS Python SDK。
# POST表单域的详细说明请参RFC2388 https://tools.ietf.org/html/rfc2388
# PostObject的官网 https://help.aliyun.com/document_detail/31... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/object_progress.py | object_progress.py | .py | 3,974 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/object_progress.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/object_progress.py | ed8f3e3c1cef93c49348ecb78b3be742f5dc8a88 | Python | 2026-05-04T01:16:18.179996 | # -*- coding: utf-8 -*-
import os
import sys
import tempfile
import oss2
# 以下代码展示了进度条功能的用法,包括上传进度条和下载进度条。
# 首先初始化AccessKeyId、AccessKeySecret、Endpoint等信息。
# 通过环境变量获取,或者把诸如“<你的AccessKeyId>”替换成真实的AccessKeyId等。
access_key_id = os.getenv('OSS_TEST_ACCESS_KEY_ID', '<你的AccessKeyId>')
access_key_secret = os.getenv('OSS_TE... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/object_request_payment.py | object_request_payment.py | .py | 1,506 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/object_request_payment.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/object_request_payment.py | d21dce6cc0f1601a3ee7f72de447285f27255bab | Python | 2026-05-04T01:16:19.556902 | # -*- coding: utf-8 -*-
import os
import oss2
from oss2.headers import OSS_REQUEST_PAYER
# 以下代码展示了第三方付费请求object的示例
# 在此之前需要Bucket的拥有者给第三方请授权,并开启请求者付费模式。
# 首先初始化AccessKeyId、AccessKeySecret、Endpoint等信息。
# 通过环境变量获取,或者把诸如“<你的AccessKeyId>”替换成真实的AccessKeyId等。
access_key_id = os.getenv('OSS_TEST_ACCESS_KEY_ID', '<你的AccessK... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/object_restore.py | object_restore.py | .py | 2,693 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/object_restore.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/object_restore.py | 9e63a6a7c6a7413e088bda9699158dd396ec1872 | Python | 2026-05-04T01:16:20.761774 |
import os
import oss2
from oss2.models import (RestoreJobParameters,
RestoreConfiguration,
RESTORE_TIER_EXPEDITED,
RESTORE_TIER_STANDARD,
RESTORE_TIER_BULK)
# Specify access information, such as AccessKeyId, AccessKeyS... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/object_server_crypto.py | object_server_crypto.py | .py | 1,881 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/object_server_crypto.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/object_server_crypto.py | 44045dc5be1b400f111a6eb9ed7991f19e6e4624 | Python | 2026-05-04T01:16:21.940089 | # -*- coding: utf-8 -*-
import os
import shutil
import oss2
from oss2.headers import RequestHeader
# 以下代码展示了其用服务端加密功能的各项操作
# 首先初始化AccessKeyId、AccessKeySecret、Endpoint等信息。
# 通过环境变量获取,或者把诸如“<你的AccessKeyId>”替换成真实的AccessKeyId等。
#
# 以杭州区域为例,Endpoint可以是:
# http://oss-cn-hangzhou.aliyuncs.com
# https://oss-cn-hangzh... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/object_storage_type.py | object_storage_type.py | .py | 2,545 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/object_storage_type.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/object_storage_type.py | 7bdd426553bd881e50111e022a68f8aac565a1df | Python | 2026-05-04T01:16:23.262290 |
import os
import oss2
import time
# Specify access information, such as AccessKeyId, AccessKeySecret, and Endpoint.
# You can obtain access information from evironment variables or replace sample values in the code, such as <your AccessKeyId> with actual values.
#
# For example, if your bucket is located in the China... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/object_tagging.py | object_tagging.py | .py | 22,158 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/object_tagging.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/object_tagging.py | d31b83bfee05fab6989d9f2d8c2c359c42cc6d84 | Python | 2026-05-04T01:16:24.653630 |
import os
import oss2
import datetime
from oss2.headers import OSS_OBJECT_TAGGING, OSS_OBJECT_TAGGING_COPY_DIRECTIVE
from oss2 import SizedFileAdapter, determine_part_size
from oss2.headers import OSS_OBJECT_TAGGING
from oss2.models import (LifecycleExpiration, LifecycleRule,
BucketLifecycle, ... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/public_access_block.py | public_access_block.py | .py | 3,031 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/public_access_block.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/public_access_block.py | 94bbaaefab1d576bb854e60de242b432d5983a7f | Python | 2026-05-04T01:16:25.798522 | import os
import time
import oss2
# Specify access information, such as AccessKeyId, AccessKeySecret, and Endpoint.
# You can obtain access information from evironment variables or replace sample values in the code, such as <your AccessKeyId> with actual values.
#
# For example, if your bucket is located in the China ... |
aliyun/aliyun-oss-python-sdk | https://github.com/aliyun/aliyun-oss-python-sdk | https://api.github.com/repos/aliyun/aliyun-oss-python-sdk | aliyun | aliyun-oss-python-sdk | Aliyun OSS SDK for Python | 995 | 355 | 995 | mit | master | 2015-12-05T12:09:57 | 2026-05-03T04:57:21 | [] | {
"Python": 1614370
} | false | 104 | examples/qos_and_resource_pool.py | qos_and_resource_pool.py | .py | 6,389 | https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/examples/qos_and_resource_pool.py | https://raw.githubusercontent.com/aliyun/aliyun-oss-python-sdk/master/examples/qos_and_resource_pool.py | 69a9c9db771fb738e80fd192d600651d7a9b523a | Python | 2026-05-04T01:16:27.100050 | import os
from oss2.models import QoSConfiguration
import oss2
# Specify access information, such as AccessKeyId, AccessKeySecret, and Endpoint.
# You can obtain access information from evironment variables or replace sample values in the code, such as <your AccessKeyId> with actual values.
#
# For example, if your bu... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | docs/conf.py | conf.py | .py | 6,350 | https://github.com/graspologic-org/graspologic/blob/main/docs/conf.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/docs/conf.py | 9bc51e0e6d4b1872b8fce82d83c671e3ce5636f8 | Python | 2026-05-04T01:16:31.687244 | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup ------------------------------------------------------------... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | docs/sphinx-ext/toctree_filter.py | toctree_filter.py | .py | 1,840 | https://github.com/graspologic-org/graspologic/blob/main/docs/sphinx-ext/toctree_filter.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/docs/sphinx-ext/toctree_filter.py | 34d6b503771c10a9b70f284499e804da12c236f7 | Python | 2026-05-04T01:16:33.011802 | # Copied and modified from https://stackoverflow.com/questions/15001888/conditional-toctree-in-sphinx
import re
from sphinx.directives.other import TocTree
def setup(app):
app.add_config_value("toc_filter_exclude", [], "html")
app.add_directive("toctree-filt", TocTreeFilt)
return {"version": "1.0.0"}
... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/__init__.py | __init__.py | .py | 605 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/__init__.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/__init__.py | 29ebe27b8bcfb26fafc22ca459133e1b629ed111 | Python | 2026-05-04T01:16:34.330456 | # Copyright (c) Microsoft Corporation and contributors.
# Licensed under the MIT License.
import graspologic.align
import graspologic.cluster
import graspologic.datasets
import graspologic.embed
import graspologic.inference
import graspologic.layouts
import graspologic.models
import graspologic.nominate
import graspol... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/align/__init__.py | __init__.py | .py | 304 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/align/__init__.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/align/__init__.py | dd8d3ddbdd986df6b246ef3ed3825f1e7a00e00f | Python | 2026-05-04T01:16:35.566245 | # Copyright (c) Microsoft Corporation and contributors.
# Licensed under the MIT License.
from .orthogonal_procrustes import OrthogonalProcrustes
from .seedless_procrustes import SeedlessProcrustes
from .sign_flips import SignFlips
__all__ = ["OrthogonalProcrustes", "SeedlessProcrustes", "SignFlips"]
|
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/align/base.py | base.py | .py | 4,615 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/align/base.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/align/base.py | 03687f0b126b9aa66b19af434b63fee73090059e | Python | 2026-05-04T01:16:36.770273 | # Copyright (c) Microsoft Corporation and contributors.
# Licensed under the MIT License.
from abc import abstractmethod
from typing import TypeVar
import numpy as np
from sklearn.base import BaseEstimator
from sklearn.utils import check_array
from graspologic.types import Tuple
Self = TypeVar("Self", bound="BaseAl... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/align/orthogonal_procrustes.py | orthogonal_procrustes.py | .py | 4,197 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/align/orthogonal_procrustes.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/align/orthogonal_procrustes.py | 7d10cd97bf993c932d41d8deb746de3167a72f48 | Python | 2026-05-04T01:16:43.068582 | # Copyright (c) Microsoft Corporation and contributors.
# Licensed under the MIT License.
import numpy as np
from scipy.linalg import orthogonal_procrustes
from .base import BaseAlign
class OrthogonalProcrustes(BaseAlign):
"""
Computes the matrix solution of the classical orthogonal Procrustes [1]_
prob... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/align/seedless_procrustes.py | seedless_procrustes.py | .py | 17,718 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/align/seedless_procrustes.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/align/seedless_procrustes.py | f10e502ecfbdbc8cef7d4aa9880dbf4a139fc814 | Python | 2026-05-04T01:16:44.519769 | # Copyright (c) Microsoft Corporation and contributors.
# Licensed under the MIT License.
from typing import Optional, Union
import numpy as np
import ot
from sklearn.utils import check_array
from graspologic.types import Tuple
from .base import BaseAlign
from .orthogonal_procrustes import OrthogonalProcrustes
from... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/align/sign_flips.py | sign_flips.py | .py | 3,733 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/align/sign_flips.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/align/sign_flips.py | d295158575471e809c806a2718cb0602b2d9db3e | Python | 2026-05-04T01:16:45.810636 | # Copyright (c) Microsoft Corporation and contributors.
# Licensed under the MIT License.
import numpy as np
from .base import BaseAlign
class SignFlips(BaseAlign):
"""
Flips the signs of all entries in one dataset, ``X`` along some of the
dimensions. In particular, it does so in a way that brings this ... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/cluster/__init__.py | __init__.py | .py | 328 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/cluster/__init__.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/cluster/__init__.py | 6338b2f095f206d105f7625d2218ead5322a52ea | Python | 2026-05-04T01:16:47.232885 | # Copyright (c) Microsoft Corporation and contributors.
# Licensed under the MIT License.
from .autogmm import AutoGMMCluster
from .divisive_cluster import DivisiveCluster
from .gclust import GaussianCluster
from .kclust import KMeansCluster
__all__ = ["GaussianCluster", "KMeansCluster", "AutoGMMCluster", "DivisiveCl... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/cluster/autogmm.py | autogmm.py | .py | 30,149 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/cluster/autogmm.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/cluster/autogmm.py | 3f2a3879bf14d8ead4a2a542fa21dfa37624f502 | Python | 2026-05-04T01:16:48.770226 | # Copyright (c) Microsoft Corporation and contributors.
# Licensed under the MIT License.
import warnings
from typing import Any, Optional, Union
import numpy as np
import pandas as pd
from joblib import Parallel, delayed
from sklearn.cluster import AgglomerativeClustering
from sklearn.exceptions import ConvergenceWa... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/cluster/base.py | base.py | .py | 2,576 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/cluster/base.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/cluster/base.py | a4ce4f19218a3571a3e78d2bb1e6cb6dc25d773e | Python | 2026-05-04T01:16:49.998614 | # Copyright (c) Microsoft Corporation and contributors.
# Licensed under the MIT License.
from abc import ABC, abstractmethod
from typing import Any, Optional
import numpy as np
from sklearn.base import BaseEstimator, ClusterMixin
from sklearn.metrics import adjusted_rand_score
from sklearn.utils.validation import ch... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/cluster/divisive_cluster.py | divisive_cluster.py | .py | 16,926 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/cluster/divisive_cluster.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/cluster/divisive_cluster.py | e4492d9b0ed9279c5b646e32671773bc2da88be0 | Python | 2026-05-04T01:16:51.209022 | # Copyright (c) Microsoft Corporation and contributors.
# Licensed under the MIT License.
from typing import Any, Optional, cast
import numpy as np
from anytree import LevelOrderIter, NodeMixin
from sklearn.base import BaseEstimator
from sklearn.mixture import GaussianMixture
from sklearn.utils import check_array
fro... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/cluster/gclust.py | gclust.py | .py | 11,062 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/cluster/gclust.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/cluster/gclust.py | a365be1b7495dcf7fea818ed6fa5646dcd1977b9 | Python | 2026-05-04T01:16:52.650034 | # Copyright (c) Microsoft Corporation and contributors.
# Licensed under the MIT License.
from typing import Optional, Union
import numpy as np
import pandas as pd
from sklearn.metrics import adjusted_rand_score
from sklearn.mixture import GaussianMixture
from sklearn.model_selection import ParameterGrid
from typing_... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/cluster/kclust.py | kclust.py | .py | 4,178 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/cluster/kclust.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/cluster/kclust.py | df58380aa509b2d902503a14c3fa9bc937d17d3e | Python | 2026-05-04T01:16:53.981271 | # Copyright (c) Microsoft Corporation and contributors.
# Licensed under the MIT License.
from typing import Optional, Union
import numpy as np
from sklearn.cluster import KMeans
from sklearn.metrics import adjusted_rand_score, silhouette_score
from graspologic.types import List
from .base import BaseCluster
clas... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/datasets/__init__.py | __init__.py | .py | 238 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/datasets/__init__.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/datasets/__init__.py | 4a5fd2adfead636a649f773217902d4ed09235f9 | Python | 2026-05-04T01:16:55.099153 | # Copyright (c) Microsoft Corporation and contributors.
# Licensed under the MIT License.
from .base import load_drosophila_left, load_drosophila_right, load_mice
__all__ = ["load_drosophila_left", "load_drosophila_right", "load_mice"]
|
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/datasets/base.py | base.py | .py | 6,898 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/datasets/base.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/datasets/base.py | 17f8c7dd1dc7d15240dd3577a4dc4d8b23fcfad6 | Python | 2026-05-04T01:16:56.265055 | # Copyright (c) Microsoft Corporation and contributors.
# Licensed under the MIT License.
from os.path import dirname, join
from pathlib import Path
from typing import Union
import numpy as np
import pandas as pd
from sklearn.utils import Bunch
from graspologic.types import Tuple
from ..utils import import_edgelist... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/embed/__init__.py | __init__.py | .py | 699 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/embed/__init__.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/embed/__init__.py | 94bfa0d774f08bb724f9146c579d0dfbfa90529f | Python | 2026-05-04T01:16:57.553010 | # Copyright (c) Microsoft Corporation and contributors.
# Licensed under the MIT License.
from .ase import AdjacencySpectralEmbed
from .base import BaseSpectralEmbed
from .case import CovariateAssistedEmbed
from .lse import LaplacianSpectralEmbed
from .mase import MultipleASE
from .mds import ClassicalMDS
from .mug2ve... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/embed/ase.py | ase.py | .py | 6,965 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/embed/ase.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/embed/ase.py | 52ab969e877ff7fc3d1b3c5a64bd7acf509bfba2 | Python | 2026-05-04T01:16:58.907563 | # Copyright (c) Microsoft Corporation and contributors.
# Licensed under the MIT License.
from typing import Any, Optional
from ..types import GraphRepresentation
from ..utils import augment_diagonal
from .base import BaseSpectralEmbed, SvdAlgorithmType
class AdjacencySpectralEmbed(BaseSpectralEmbed):
r"""
... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/embed/base.py | base.py | .py | 17,726 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/embed/base.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/embed/base.py | 8619e80daf2c3b8fa6794fa5d68428ed2e9ecf48 | Python | 2026-05-04T01:17:00.197648 | # Copyright (c) Microsoft Corporation and contributors.
# Licensed under the MIT License.
import warnings
from abc import abstractmethod
from typing import Any, Optional, Union
import networkx as nx
import numpy as np
from sklearn.base import BaseEstimator
from sklearn.utils.validation import check_is_fitted
from typ... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/embed/case.py | case.py | .py | 8,276 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/embed/case.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/embed/case.py | ebc95497e3b4954b61ac870e7e1ca7ae6f699f0d | Python | 2026-05-04T01:17:01.895221 | from typing import Callable, Optional
import numpy as np
from scipy.sparse.linalg import LinearOperator, eigsh
from sklearn.preprocessing import normalize, scale
from graspologic.embed.base import BaseSpectralEmbed
from graspologic.types import Tuple
from graspologic.utils import import_graph, is_almost_symmetric, to... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/embed/lse.py | lse.py | .py | 7,502 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/embed/lse.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/embed/lse.py | 6a5f1f2071d31937fe6b6f9a142b4453d3e7c942 | Python | 2026-05-04T01:17:03.328566 | # Copyright (c) Microsoft Corporation and contributors.
# Licensed under the MIT License.
from typing import Any, Optional, Union
import networkx as nx
import numpy as np
from ..types import GraphRepresentation
from ..utils import LaplacianFormType, to_laplacian
from .base import BaseSpectralEmbed, SvdAlgorithmType... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/embed/mase.py | mase.py | .py | 10,447 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/embed/mase.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/embed/mase.py | b2bb5904a88b1cdf6ceb199dcf5ee4de227b1022 | Python | 2026-05-04T01:17:04.846683 | # Copyright (c) Microsoft Corporation and contributors.
# Licensed under the MIT License.
from typing import Optional
import numpy as np
from ..utils import is_almost_symmetric
from .base import BaseEmbedMulti
from .svd import SvdAlgorithmType, select_dimension, select_svd
class MultipleASE(BaseEmbedMulti):
r"... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/embed/mds.py | mds.py | .py | 9,537 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/embed/mds.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/embed/mds.py | 769c6836ae8fb1a68ad2b10d1bd5453cd0ad9558 | Python | 2026-05-04T01:17:06.061348 | # Copyright (c) Microsoft Corporation and contributors.
# Licensed under the MIT License.
from typing import TYPE_CHECKING, Any, Optional, Union
import numpy as np
from sklearn.base import BaseEstimator
from sklearn.utils import check_array
from typing_extensions import Literal
from ..utils import is_symmetric
from ... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/embed/mug2vec.py | mug2vec.py | .py | 6,972 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/embed/mug2vec.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/embed/mug2vec.py | 2bb0542eaa516b30236f4b622ece2d21eec671bd | Python | 2026-05-04T01:17:07.543963 | # Copyright (c) Microsoft Corporation and contributors.
# Licensed under the MIT License.
from typing import Any, Optional
import numpy as np
from sklearn.base import BaseEstimator
from typing_extensions import Literal
from graspologic.types import List
from ..types import GraphRepresentation
from ..utils import pa... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/embed/n2v.py | n2v.py | .py | 19,443 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/embed/n2v.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/embed/n2v.py | 6d848b8a0b0093fd9453ab039cd2afbc1fc2dfb5 | Python | 2026-05-04T01:17:08.970059 | # Copyright (c) Microsoft Corporation and contributors.
# Licensed under the MIT License.
import logging
import math
import time
import warnings
from typing import Any, Optional, Union
import networkx as nx
import numpy as np
from gensim.models import Word2Vec
from graspologic.types import List, Tuple
from ..utils ... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/embed/omni.py | omni.py | .py | 11,479 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/embed/omni.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/embed/omni.py | 3da50da96ccf1539884a59b0831b121a6e9c8533 | Python | 2026-05-04T01:17:10.425725 | # Copyright (c) Microsoft Corporation and contributors.
# Licensed under the MIT License.
import warnings
from typing import Optional, Union
import numpy as np
from beartype import beartype
from scipy.sparse import csr_array, hstack, isspmatrix_csr, vstack
from graspologic.types import List
from ..types import Adja... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/embed/svd.py | svd.py | .py | 11,834 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/embed/svd.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/embed/svd.py | 47dbaec9770d6f5eb10a3146e3fb4fd63f7cbcaf | Python | 2026-05-04T01:17:12.731247 | # Copyright (c) Microsoft Corporation and contributors.
# Licensed under the MIT License.
from typing import Optional, Union
import numpy as np
import scipy
import scipy.sparse as sp
import sklearn
from scipy.sparse import csr_array
from scipy.stats import norm
from typing_extensions import Literal
from graspologic.... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/inference/__init__.py | __init__.py | .py | 429 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/inference/__init__.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/inference/__init__.py | 6980f542ea8143dca2c34bc68fb474d59eef3d8e | Python | 2026-05-04T01:17:14.062541 | # Copyright (c) Microsoft Corporation and contributors.
# Licensed under the MIT License.
from .density_test import density_test
from .group_connection_test import group_connection_test
from .latent_distribution_test import latent_distribution_test
from .latent_position_test import latent_position_test
__all__ = [
... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/inference/binomial.py | binomial.py | .py | 2,880 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/inference/binomial.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/inference/binomial.py | 77532dd34965d83a12518ee263302445a3c2b1fe | Python | 2026-05-04T01:17:15.381806 | from collections import namedtuple
from typing import Literal
import numpy as np
from scipy.stats import chi2_contingency, fisher_exact
from statsmodels.stats.proportion import test_proportions_2indep
BinomialResult = namedtuple("BinomialResult", ["stat", "pvalue"])
BinomialTestMethod = Literal["score", "fisher", "ch... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/inference/density_test.py | density_test.py | .py | 4,564 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/inference/density_test.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/inference/density_test.py | 1633df0671f94bfe9e7cf321664f9b2c038e64cd | Python | 2026-05-04T01:17:17.023122 | from collections import namedtuple
import numpy as np
from beartype import beartype
from ..types import AdjacencyMatrix
from .binomial import BinomialTestMethod
from .group_connection_test import group_connection_test
DensityTestResult = namedtuple("DensityTestResult", ["stat", "pvalue", "misc"])
@beartype
def den... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/inference/group_connection_test.py | group_connection_test.py | .py | 20,564 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/inference/group_connection_test.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/inference/group_connection_test.py | 8bde03e452d25bf23bde4e6eea047bb567fb6719 | Python | 2026-05-04T01:17:18.570124 | import warnings
from collections import namedtuple
from typing import Union
import numpy as np
import pandas as pd
from beartype import beartype
from scipy.stats import combine_pvalues
from statsmodels.stats.multitest import multipletests
from ..types import AdjacencyMatrix, List
from ..utils import import_graph, is_... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/inference/latent_distribution_test.py | latent_distribution_test.py | .py | 20,135 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/inference/latent_distribution_test.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/inference/latent_distribution_test.py | fb1b34866e1d8537990e5bb2ecb16259caadd603 | Python | 2026-05-04T01:17:20.021260 | # Copyright (c) Microsoft Corporation and contributors.
# Licensed under the MIT License.
from typing import Any, Callable, NamedTuple, Optional, Union
import numpy as np
from hyppo.ksample import KSample
from joblib import Parallel, delayed
from scipy import stats
from sklearn.metrics.pairwise import PAIRED_DISTANCE... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/inference/latent_position_test.py | latent_position_test.py | .py | 9,837 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/inference/latent_position_test.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/inference/latent_position_test.py | dfc7a2d8644b01b11c7f45dc51a801f3b4222127 | Python | 2026-05-04T01:17:21.454169 | # Copyright (c) Microsoft Corporation and contributors.
# Licensed under the MIT License.
from collections import namedtuple
from typing import Optional, cast
import numpy as np
from joblib import Parallel, delayed
from typing_extensions import Literal
from graspologic.types import Tuple
from ..align import Orthogo... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/inference/utils.py | utils.py | .py | 2,392 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/inference/utils.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/inference/utils.py | 6f4befbcd1a4139c6033a6b4aac610d3eb599f85 | Python | 2026-05-04T01:17:22.756705 | import numpy as np
from ..types import AdjacencyMatrix
def compute_density(adjacency: AdjacencyMatrix, loops: bool = False) -> float:
"""
For a given graph, this function computes the graph density, defined as the actual number of edges divided by the total possible number
of edges in the graph.
Par... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/layouts/__init__.py | __init__.py | .py | 428 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/layouts/__init__.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/layouts/__init__.py | aabd618dfba2fe563bc8a994dbf6cb28f71fad1f | Python | 2026-05-04T01:17:23.984650 | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from .classes import NodePosition
from .colors import categorical_colors, sequential_colors
from .render import save_graph, show_graph
from .auto import layout_tsne, layout_umap # isort:skip
__all__ = [
"NodePosition",
"categorical_co... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/layouts/__main__.py | __main__.py | .py | 10,697 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/layouts/__main__.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/layouts/__main__.py | b774e57bb68b5105f4a701a4dc5ff3cd15a557f1 | Python | 2026-05-04T01:17:25.730698 | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import argparse
import logging
import sys
from pathlib import Path
from typing import Any
import networkx as nx
from graspologic.types import Dict, List
from . import NodePosition, auto, render
from .colors import categorical_colors
def _gra... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/layouts/auto.py | auto.py | .py | 16,074 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/layouts/auto.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/layouts/auto.py | 2aa4d73234fc902305ebae0b0c0c3fce5233e880 | Python | 2026-05-04T01:17:27.128171 | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import logging
import math
import time
from typing import Any, Optional, Sequence
import networkx as nx
import numpy as np
import umap
from sklearn.manifold import TSNE
from graspologic.types import Dict, List, Tuple
from ..embed import node2v... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/layouts/classes.py | classes.py | .py | 345 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/layouts/classes.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/layouts/classes.py | 5f6bc947116750e76536688aa1fae33101a3915c | Python | 2026-05-04T01:17:28.232322 | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from typing import NamedTuple
__all__ = [
"NodePosition",
]
class NodePosition(NamedTuple):
"""
Contains the node id, 2d coordinates, size, and community id for a node.
"""
node_id: str
x: float
y: float
size: ... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/layouts/colors.py | colors.py | .py | 6,025 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/layouts/colors.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/layouts/colors.py | 182987cd8afa70a56c1fd62d14ad29285840833c | Python | 2026-05-04T01:17:29.422785 | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import json
import math
import os
from itertools import cycle
from pathlib import Path
from typing import Any, Optional
import numpy as np
from sklearn.preprocessing import minmax_scale
from graspologic.types import Dict, Tuple
__all__ = ["cat... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/layouts/nooverlap/__init__.py | __init__.py | .py | 174 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/layouts/nooverlap/__init__.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/layouts/nooverlap/__init__.py | ae92d97c4b2aeacc994989b307bcb2ca9020d77c | Python | 2026-05-04T01:17:30.663117 | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from graspologic.layouts.nooverlap.nooverlap import remove_overlaps
__all__ = ["remove_overlaps"]
|
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/layouts/nooverlap/_grid.py | _grid.py | .py | 7,029 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/layouts/nooverlap/_grid.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/layouts/nooverlap/_grid.py | 9cef0b2b7bc1734701d80d47eacef5e1fa9dc8ea | Python | 2026-05-04T01:17:31.868365 | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import math
from collections import defaultdict
from graspologic.types import Dict, List, Set, Tuple
from ._node import _Node
class _GridBuckets:
"""
One thing to note, that right now this grid must have cells the same size or bigger
... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/layouts/nooverlap/_node.py | _node.py | .py | 860 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/layouts/nooverlap/_node.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/layouts/nooverlap/_node.py | ef3bf39df82a3233525807d8a9041b3b49807514 | Python | 2026-05-04T01:17:33.116708 | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from typing import Any
class _Node:
def __init__(
self,
node_id: Any,
x: float,
y: float,
size: float,
community: int = 9999999,
color: str = "",
):
self.node_id = node_id
... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/layouts/nooverlap/_quad_node.py | _quad_node.py | .py | 42,453 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/layouts/nooverlap/_quad_node.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/layouts/nooverlap/_quad_node.py | 52d7e4f5434d54374c5203e96ac705defb97feb2 | Python | 2026-05-04T01:17:35.100114 | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import logging
import math
import typing
from typing import Any, Optional
import numpy as np
from scipy.spatial import distance
from sklearn.preprocessing import normalize
from graspologic.layouts.classes import NodePosition
from graspologic.ty... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/layouts/nooverlap/_quad_tree.py | _quad_tree.py | .py | 2,171 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/layouts/nooverlap/_quad_tree.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/layouts/nooverlap/_quad_tree.py | 39d92b9864f32f2f48860c82104a1d4532e16c3d | Python | 2026-05-04T01:17:36.401878 | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from typing import Optional
from graspologic.types import List, Tuple
from ._node import _Node
from ._quad_node import _QuadNode
class _QuadTree:
# used to hold objects that have x, y, and mass property
# nodes = []
def __init__(s... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/layouts/nooverlap/nooverlap.py | nooverlap.py | .py | 964 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/layouts/nooverlap/nooverlap.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/layouts/nooverlap/nooverlap.py | 1c091ed09c24dd48632a8ab696e238d13ed78e74 | Python | 2026-05-04T01:17:37.922565 | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import logging
import time
from graspologic.types import List
from .. import NodePosition
from ._node import _Node
from ._quad_tree import _QuadTree
logger = logging.getLogger(__name__)
def remove_overlaps(node_positions: List[NodePosition])... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/layouts/render.py | render.py | .py | 10,077 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/layouts/render.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/layouts/render.py | 9975e67b06eaff4e21f8e6a696435dc0944c503b | Python | 2026-05-04T01:17:39.303177 | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from typing import Any
import matplotlib.pyplot as plt
import networkx as nx
from graspologic.layouts.classes import NodePosition
from graspologic.types import Dict, List, Tuple
def _calculate_x_y_domain(
positions: List[NodePosition],
) ... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/match/__init__.py | __init__.py | .py | 152 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/match/__init__.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/match/__init__.py | 7575854b3cbfd55dc3ffc1b95761cc9d3dcad8bf | Python | 2026-05-04T01:17:40.687138 | # Copyright (c) Microsoft Corporation and contributors.
# Licensed under the MIT License.
from .wrappers import graph_match
__all__ = ["graph_match"]
|
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/match/solver.py | solver.py | .py | 26,991 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/match/solver.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/match/solver.py | d720713ea2bb1fec3c5564bd5cb596f4e3b89af4 | Python | 2026-05-04T01:17:42.428753 | # Copyright (c) Microsoft Corporation and contributors.
# Licensed under the MIT License.
import time
import warnings
from functools import wraps
from typing import Callable, Optional, Union
import numpy as np
from beartype import beartype
from ot import sinkhorn
from scipy.optimize import linear_sum_assignment
from ... |
graspologic-org/graspologic | https://github.com/graspologic-org/graspologic | https://api.github.com/repos/graspologic-org/graspologic | graspologic-org | graspologic | Python package for graph statistics | 995 | 170 | 995 | mit | main | 2018-09-07T04:00:05 | 2026-04-30T00:01:20 | [
"data-science",
"graph",
"graph-statistics",
"machine-learning",
"networks",
"python"
] | {
"Python": 1132802
} | false | 72 | graspologic/match/types.py | types.py | .py | 840 | https://github.com/graspologic-org/graspologic/blob/main/graspologic/match/types.py | https://raw.githubusercontent.com/graspologic-org/graspologic/main/graspologic/match/types.py | 5a7b218e54174f2c821bdf6ee2f7715b46eeccac | Python | 2026-05-04T01:17:43.657892 | # Copyright (c) Microsoft Corporation and contributors.
# Licensed under the MIT License.
from typing import Union
import numpy as np
from packaging import version
from scipy import __version__ as scipy_version
from scipy.sparse import csr_array
if version.parse(scipy_version) >= version.parse("1.8.0"):
from sci... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.