By design, we expect that simply importing will add the model to the loader, but we haven't created the test yet...
AmaseCocoa
@cocoa@hackers.pub · 16 following · 17 followers
I maybe use Engrish in this account
Pythonista/Author of apkit. An Modularized ActivityPub Toolkit.
main (Iceshrimp)
- @AmaseCocoa@i.amase.cc
YarukiNotFound
- amase.cc
Zenn
- @amasecocoa
Today new apmodel features:
- User can add and override (required inheritance the class) own model to loader (core models is can't override, show warning)
- apmodel supports to preload json-ld schema from local (example, schema.org, activitystreams 2.0)
For example, you can also modify extensions provided by Mastodon to be usable within an Actor (if you modify an Actor, its child inheritance won't be updated, so you'll need to modify those too... though Actors are designed to use the default value __apmodel_base__ via AS_URI, so they aren't included in the loader in the first place...).
Today new apmodel features:
- User can add and override (required inheritance the class) own model to loader (core models is can't override, show warning)
- apmodel supports to preload json-ld schema from local (example, schema.org, activitystreams 2.0)
- The definition of
typeURI now uses a ClassVar called AS_URI. This reduces the effort required to automatically register models with load and eliminates the need to redefinetypefor each model.
Today new apmodel features:
- User can add and override (required inheritance the class) own model to loader (core models is can't override, show warning)
- apmodel supports to preload json-ld schema from local (example, schema.org, activitystreams 2.0)
I making next-version of apmodel, that uses pydantic for better validation and better loader.
Currently, this feature is either not implemented or not fully implemented:
- export to json is not avaliable
Additionally, some models have not been migrated to pydantic, so they cannot be used properly.
If you interested this, can read this branch: https://github.com/fedi-libs/apmodel/tree/pydantic
The model implementation is nearly complete, so it's time to begin tasks such as assigning aliases to the model:
I making next-version of apmodel, that uses pydantic for better validation and better loader.
Currently, this feature is either not implemented or not fully implemented:
- export to json is not avaliable
Additionally, some models have not been migrated to pydantic, so they cannot be used properly.
If you interested this, can read this branch: https://github.com/fedi-libs/apmodel/tree/pydantic
まぁPoCくらいは作ってもいいかもね
ActivityPub関係のリクエストをに別のサーバーがプロキシになって取得するようにできないかなーなんて思ったけど、信頼性とか鮮度の観点から厳しそう
やるとしたら、署名周りの問題や鮮度をどうするかっていうのが重要なポイントになる
I should more learn the English...
My first Rust project (in effect)
Since there was a library by PyO3, reading pyproject.toml wasn't too much trouble.
Migrate to Misskey from Iceshrimp
AmaseCocoa @cocoa@hackers.pub
This post outlines the process of migrating from Iceshrimp, a fork of Firefish (itself a fork of Misskey v12), to Misskey, starting from v13. The author details their reasons for migrating, including ongoing reimplementation efforts in .NET, issues with media rendering, and a general preference for Misskey. A comparison table highlights key differences between Iceshrimp and Misskey, such as translation API, note editing capabilities, MOTD, note length limits, search engine options, FTT, and social login. The guide provides a step-by-step walkthrough, including backing up and rolling back the database, running specific SQL commands to align the database schema with Misskey, and installing Misskey without initializing it to prevent data corruption. Troubleshooting tips are included for common issues like login failures and client loading problems. This migration guide offers valuable insights for those looking to transition from Iceshrimp to Misskey, ensuring a smoother process.
Read more →Fixed already in this PR, Gemini has reading wrong text...🤨
https://github.com/hackers-pub/hackerspub/pull/165#discussion_r2468149490
typo? (リアクションだと他n人になってる)
fixed
😂
typo? (リアクションだと他n人になってる)
ActivityPubを一から実装するのをお勧めしない理由みたいな記事書きたい
By the way, I'm anxiety because, maybe have spell miss... (don't or can't?)
I don't understand why Mastodon is not pass signature...
I'd like a json-ld library like Calamus, but Calamus doesn't seem to be actively maintained... (Even if I wanted to use Calamus, it appears to have vulnerabilities)
I searched issue, pyld have big issues...
maybe resolve with custom loaders?
Currently, apmodel does not uses any JSON-LD processor.
I should test to integrate pyld for apmodel...
I searched issue, pyld have big issues...
Currently, apmodel does not uses any JSON-LD processor.
I should test to integrate pyld for apmodel...
apkit 0.3.3 has been released!
This includes some big features:
- Synchronous ActivityPubClient - I've implemented an ActivityPubClient for the new sync code! It's based on httpcore, the transport implemention of httpx`.
Bug Fixes:
- Error message clarified when no handler is registered
https://pypi.org/project/apkit/0.3.3/
Implementation of RFC9421 is complete, but unit tests have not yet been created and compatibility testing with existing implementations has not yet been performed.
Also, I won't merge it yet because there might still be bugs (and the tests aren't complete).
Implementation of RFC9421 is complete, but unit tests have not yet been created and compatibility testing with existing implementations has not yet been performed.
RFC9421 is allowed multiple signatures? I saw that now...
Within today, I finish to make first-version of RFC 9421-implementation.
@cocoaAmaseCocoa Did you add Mention to the tag property of the Note object? Oh, and the mentioned actors must be listed in the to property.
@hongminhee洪 民憙 (Hong Minhee) I already tryed this, My reminder bot is can create Mention with correct notification in Misskey. (If mastodon, they got same issue)
I'm interesting in FEP-fe34
I will check that after wakeup
I'm interesting in FEP-fe34
Currently, apkit is experiencing a critical issue... It appears there are problems with interoperability with Mastodon... I'm investigating where exactly it is failing... (https://github.com/fedi-libs/apkit/issues/19)
However, I think I'll try to sleep today... If I keep researching, my day-night reversal will probably get worse...
After that, pressing some mysterious key caused the screen to zoom in weirdly and I couldn't get it back to normal.
Currently, apkit is experiencing a critical issue... It appears there are problems with interoperability with Mastodon... I'm investigating where exactly it is failing... (https://github.com/fedi-libs/apkit/issues/19)
However, I think I'll try to sleep today... If I keep researching, my day-night reversal will probably get worse...
@cocoaAmaseCocoa Oh, I'm going to enjoy that! Maybe I'll migrate
@DailyRucksDaily Rucks from Bastion to it once it's all stable. 😀
@julianJulian Fietkau
@DailyRucksDaily Rucks from Bastion Once the library is stable, by all means!
apkit-flask currently need to install apkit from git.
Today new #apkit features:
- Added synchronous client
- New Abstract class
AbstractApkitIntegration, This enables the creation of apkit integrations based on a somewhat formalized class.
today is improve the synchronous support in apkit
I currently making requets-based synchronous ActivityPub client for apkit...
I switched to httpcore from requests... this is base of httpx.
I currently making requets-based synchronous ActivityPub client for apkit...
I don't like FEP-044f...
I think the idea itself is good, but the problem is that it adopts an opt-in approach. First, it cannot be quoted in software that hasn't implemented it. Second, static file-based servers cannot support quoting (044f requires sending a QuoteAuthorization when approving a quote). I've never actually seen a static file-based ActivityPub server, so you probably don't need to worry too much about that...
Also, since the canQuote policy seems to only serve as advice, it appears we can't make it approval-free... :(
(Please let me know if there are any errors in this; it would be helpful.)
If my understanding is correct, quoting requires complex processing, so whether to implement this in our own implementation (namely "kagura") is still undecided. At the very least, I'm not enthusiastic about implementing it unless the drawbacks are resolved. Regarding apkit/apmodel, it is as described in this post.
I don't like FEP-044f...
I think the idea itself is good, but the problem is that it adopts an opt-in approach. First, it cannot be quoted in software that hasn't implemented it. Second, static file-based servers cannot support quoting (044f requires sending a QuoteAuthorization when approving a quote). I've never actually seen a static file-based ActivityPub server, so you probably don't need to worry too much about that...
Also, since the canQuote policy seems to only serve as advice, it appears we can't make it approval-free... :(
(Please let me know if there are any errors in this; it would be helpful.)
@cocoaAmaseCocoa Additionally, MissKey implementation was just working. What keeps people from just screenshotting and attaching it as an image is existence of a simpler way.
I don't like FEP-044f...
I think the idea itself is good, but the problem is that it adopts an opt-in approach. First, it cannot be quoted in software that hasn't implemented it. Second, static file-based servers cannot support quoting (044f requires sending a QuoteAuthorization when approving a quote). I've never actually seen a static file-based ActivityPub server, so you probably don't need to worry too much about that...
Also, since the canQuote policy seems to only serve as advice, it appears we can't make it approval-free... :(
(Please let me know if there are any errors in this; it would be helpful.)
以前、福岡へ旅行した際にEngineer Cafeに立ち寄ったのが印象に残っているのですが、日本の他の地域にもEngineer Cafeのような場所は有りますか?オフラインで日本のソフトウェア開発者の方々と交流したいです。
😂
When SQLSpec is stable, I want use this for application...🤔
🤔
apmodel isn't parse json as JSON-LD, If parse as JSON-LD, I should make JSON-LD parser... 🫠 (pyld is not maintenanced, rdflib is... I'm not tested this🫠)
sqlspec is can use for migration?🤔



